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

Home » FUDforum Development » Bug Reports » maillist.php <> gmail (Solution?)
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
maillist.php <> gmail [message #163532] Fri, 05 November 2010 02:29 Go to next message
LewistownMT is currently offline  LewistownMT   United States
Messages: 1
Registered: November 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
####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 17:07 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Looks like you are hitting this PHP bug (or a variation of it):
http://bugs.php.net/bug.php?id=38890
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Mon Oct 23 15:10:26 EDT 2017

Total time taken to generate the page: 0.00618 seconds