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

Home » FUDforum Development » Plugins and Code Hacks » ML/FUD Forum Gateway - Import archives of a mailing-list
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
ML/FUD Forum Gateway - Import archives of a mailing-list [message #162344] Wed, 28 April 2010 17:45 Go to previous message
antoviaque is currently offline  antoviaque   United Kingdom
Messages: 1
Registered: April 2010
Location: Paris
Karma:
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.

  1. Put copies of the mailing-list archives on a dedicated mailbox accessible through POP/IMAP (use your mailer)
  2. Configure FUDForum to retrieve the emails on this mailbox
  3. 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)); 

  4. Run $ php maillist.php X, where X is the id of your list (see FUDforum mailing list configuration panel)


Xavier.
[Message index]
 
Read Message
Read Message
Previous Topic: FUDforum RSS to Post - Full RSS Feeds
Next Topic: simple embed hack for youtube/polls/etc
Goto Forum:
  

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

Current Time: Sat Nov 23 18:28:27 GMT 2024

Total time taken to generate the page: 0.05292 seconds