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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
ML/FUD Forum Gateway - Import archives of a mailing-list [message #162344] Wed, 28 April 2010 13:45 Go to next message
antoviaque is currently offline  antoviaque   United Kingdom
Messages: 1
Registered: April 2010
Location: Paris
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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.
Re: ML/FUD Forum Gateway - Import archives of a mailing-list [message #162346 is a reply to message #162344] Wed, 28 April 2010 14:42 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3631
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Thanks. Patch was committed. For details, see https://sourceforge.net/apps/trac/fudforum/changeset/4949
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Mon Dec 11 15:38:34 EST 2017

Total time taken to generate the page: 0.00663 seconds