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
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 17:45 Go to next message
antoviaque is currently offline  antoviaque   United Kingdom
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.

  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 18:42 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Thanks. Patch was committed. For details, see https://sourceforge.net/apps/trac/fudforum/changeset/4949
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Thu Nov 21 10:41:29 GMT 2024

Total time taken to generate the page: 0.02732 seconds