ML/FUD Forum Gateway - Import archives of a mailing-list [message #162344] |
Wed, 28 April 2010 17:45 |
antoviaque
Messages: 1 Registered: April 2010 Location: Paris
Karma: 0
|
Junior Member |
|
|
Hi,
I setup FUDForum as a gatway with an existing mailing-list, and I wanted to import the archives of the mailing-list. The trick was to make to make sure FUDforum retreives all emails on the mailbox (not just the one tagged "recent"), and imports them in chronological order to avoid breaking the threads.
- Put copies of the mailing-list archives on a dedicated mailbox accessible through POP/IMAP (use your mailer)
- Configure FUDForum to retrieve the emails on this mailbox
- Apply the following patch to maillist.php (:
424c424,425
< $emails = @imap_search($mbox, 'RECENT');
---
> //$emails = @imap_search($mbox, 'RECENT');
> $emails = array_reverse(@imap_sort($mbox, "SORTDATE", 0));
- Run $ php maillist.php X, where X is the id of your list (see FUDforum mailing list configuration panel)
Xavier.
|
|
|
|