Importing large mailing list? [message #22773] |
Tue, 15 February 2005 16:18 |
marmite
Messages: 2 Registered: February 2005
Karma: 0
|
Junior Member |
|
|
I have several thousand messages from a mailing list I want to import into FUDforum. The messages are currently stored in Maildir format on my Courier IMAP mailserver. The server does virtual hosts, so there's no linux logon associated with this list.
Is there an easy way to "feed" the messages through procmail to import them into the forum?
Thanks,
James
|
|
|
Re: Importing large mailing list? [message #22774 is a reply to message #22773] |
Tue, 15 February 2005 16:42 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Search the forum archives, there were more 1 sample scripts for the purposes of importing large quantity of messages from Maildir/.
The basic operation would be (pseudo-code):
$msg_list = "list all messages by date in ascending order"
foreach ($msg_list as $message)
cat $message | maillist.php [import_rule_id]
FUDforum Core Developer
|
|
|
Re: Importing large mailing list? [message #22841 is a reply to message #22773] |
Fri, 18 February 2005 08:46 |
marmite
Messages: 2 Registered: February 2005
Karma: 0
|
Junior Member |
|
|
Thanks for the tip - the import script is working fine.
Can I ask how FUDforum's maillist.php script works out which messages should be in a thread together? I'm importing lots of messages from a Yahoo Group, and it appears that some of the threads aren't being recognised as a a thread, so in the FUDforum view, each message shows as a separate thread (although they were one thread on the mailing list).
Also, does it matter in which order I import the messages?
Thanks,
James
[Updated on: Fri, 18 February 2005 08:47] Report message to a moderator
|
|
|
Re: Importing large mailing list? [message #22854 is a reply to message #22841] |
Fri, 18 February 2005 16:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It used message headers that contain a reference to the message the current message is a reply to. Inside maillist import you can also enable " Slow Reply Match" that will look @ the subjects of the message in the absense of needed headers.
FUDforum Core Developer
|
|
|