FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Newsgroup Import Hack?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Newsgroup Import Hack? [message #9078] Wed, 12 March 2003 17:33 Go to next message
forrie is currently offline  forrie   United States
Messages: 47
Registered: August 2002
Location: Derry, NH
Karma: 0
Member
I have a user that has an older Usenet spool directory of articles that I'd like to get imported into FUDFORUM. Is there a way to do this without having to go through the hassle of setting up INN (et al)?


Thanks...
Smile
Re: Newsgroup Import Hack? [message #9090 is a reply to message #9078] Thu, 13 March 2003 14:32 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Yeah, make some sort of a script that will pipe the messages one by one to maillist.php.

FUDforum Core Developer
Re: Newsgroup Import Hack? [message #9146 is a reply to message #9090] Thu, 13 March 2003 17:24 Go to previous messageGo to next message
forrie is currently offline  forrie   United States
Messages: 47
Registered: August 2002
Location: Derry, NH
Karma: 0
Member
I'm new to PHP, have it only compiled as a module for apache, but can try to get the command-line parser installed for this process.

Will maillist.php correctly parse all the news headers et al?


Thank you! Smile


prottoss wrote on Thu, 13 March 2003 09:32

Yeah, make some sort of a script that will pipe the messages one by one to maillist.php.

Re: Newsgroup Import Hack? [message #9150 is a reply to message #9146] Thu, 13 March 2003 17:46 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It should....

FUDforum Core Developer
Re: Newsgroup Import Hack? [message #9165 is a reply to message #9150] Thu, 13 March 2003 20:37 Go to previous messageGo to next message
forrie is currently offline  forrie   United States
Messages: 47
Registered: August 2002
Location: Derry, NH
Karma: 0
Member
I'll set up a for-next loop and test it out... are there any args to maillist.php (remember, I'm new to PHP, so am a little clueless with it).


Thanks.

prottoss wrote on Thu, 13 March 2003 12:46

It should....

Re: Newsgroup Import Hack? [message #9173 is a reply to message #9165] Fri, 14 March 2003 05:53 Go to previous message
forrie is currently offline  forrie   United States
Messages: 47
Registered: August 2002
Location: Derry, NH
Karma: 0
Member
I have the mailing list gateway working finally. However, I'm running into a problem with maillist.php not apparently parsing the Usenet headers correctly.

For example, one of the old Usenet posts has this for headers:

Path: news.iii.net!iii2.iii.net!not-for-mail
From: bsmith(at)iii2(dot)iii(dot)net (Bob)
Newsgroups: local.iii
Subject: (ALERT) INTERNET DAY OF PROTEST TUESDAY DECEMBER 12, 1995
Date: 10 Dec 1995 21:07:28 -0500
Organization: iii-net
Lines: 232
Message-ID: <4ag3p0$7qf(at)iii2(dot)iii(dot)net>
NNTP-Posting-Host: iii2.iii.net
X-Newsreader: TIN [version 1.2 PL2]


If I pipe this to maillist.php, it does get posted, but the poster is "Anonymous Coward" which means maillist.php isn't picking up the From: header.

By "pipe" I mean something like this:

$ cat 3232 | /usr/local/apache/htdocs/forum/scripts/maillist.php 1

Not sure if "1" is needed for that method.

It's pretty important that I get this info into the forum for what it's being used for, though.


Thanks,

Forrest


prottoss wrote on Thu, 13 March 2003 12:46

It should....

[/quote]

[Updated on: Fri, 14 March 2003 06:19]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Multi-Bytes Language full text search engine Hack..
Next Topic: Does anyone have Traditional Chinese translation?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 14 01:30:25 GMT 2024

Total time taken to generate the page: 0.02523 seconds