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

Home » FUDforum Development » Bug Reports » maillist.php <> gmail (Solution?)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
maillist.php <> gmail [message #163532] Fri, 05 November 2010 06:29 Go to next message
LewistownMT is currently offline  LewistownMT   United States
Messages: 1
Registered: November 2010
Karma: 0
Junior Member
####CAUTION NEWBIE POST######

Installed 2.0.3RC2 primarily as a test for mailing list archival / interactive purposes. Using gmail account subscribed to the list as the source for posts.

Code modified (around line 152)
//		$emails = @imap_search($mbox, 'RECENT');
		$emails = @imap_search($mbox, 'ALL');
//		$emails = array_reverse(@imap_sort($mbox, 'SORTDATE', 0));


The array_reverse call was returning a null value and throwing this error on the system:
PHP Warning:  array_reverse() expects parameter 1 to be array, null given in /var/FUDforum/scripts/mymaillist.php on line 153


I tried commenting out that line and reverting to the imap_search($mbox, 'RECENT') call, however $emails was still coming up empty despite NEW messages in the inbox...maybe its a gmail IMAP thing? Switchin the paramet to 'ALL' solved it for me: brought the messages from the inbox, posted them to FF and deleted them from the gmail account. I can live with it.

Maybe this will save someone else some hours of sleuthing.

Thanks for the great forum solution!
Re: maillist.php <> gmail [message #163546 is a reply to message #163532] Fri, 05 November 2010 21:07 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Looks like you are hitting this PHP bug (or a variation of it):
http://bugs.php.net/bug.php?id=38890
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3.0.2RC1 javascript "select all/none" checkbox doesn't work
Next Topic: [SOLVED]Header/Body Alignment after 3.0.2 upgrade
Goto Forum:
  

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

Current Time: Thu Nov 28 21:06:14 GMT 2024

Total time taken to generate the page: 0.02640 seconds