|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-07 15:56 UTC] jacooper at isr dot umd dot edu
[2002-08-07 17:00 UTC] kalowsky@php.net
[2002-08-09 17:06 UTC] jacooper at isr dot umd dot edu
[2002-09-11 11:50 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 16:00:02 2025 UTC |
PHP built with: './configure' '--with-apxs=/export/software/httpd/bin/apxs' '--with-ldap=/dept/isr/local' '--with-snmp=/dept/isr/local' '--with-imap=/dept/isr/local' '--with-mysql' '--with-gd=/usr/local' '--disable-safe-mode' '--prefix=/dept/isr/local' '--with-config-file-path=/export/software/httpd/conf' '--enable-cli' '--with-openssl=/dept/isr/local' '--with-imap-ssl=/dept/isr/local' according to phpinfo. c-client version is 2002-RC2, according to my SA. The following code snippet does not result in the expected result: $sorted_array = imap_sort($mbox, SORTDATE, 0, SE_UID); $sequence = implode(",",$sorted_array); $overview = imap_fetch_overview($mbox,$sequence,FT_UID); if(is_array($overview)) { reset($overview); while( list($key,$val) = each($overview)) { print $val->msgno . " - " . $val->date . " - " . $val->subject . "<br>\n"; } } else { print "Bollocks, overview fails again<br>\n"; } I would expect that this code snippet would return a header for each message in the mailbox I have opened in my imap_open call. The behavior I experience is that I will get a small number of headers (call it $x) the first time I run imap_fetch_overview. If I put imap_fetch_overview in a for/while loop, it will return $x+1 headers ($x seems to increment each iteration) on each iteration. I do not change the sequence I give to imap_fetch_overview while doing this. I have also tried setting sequence to the first and last message UID, seperated by a :. This results in the same behavior. For example, if I have a mailbox with 70 messages, the first iteration will return 9 headers. The next 10, after that 11, and so on until eventually it appears to not get a full header for a message. I'm guessing it hits the script time execution limit when this happens but I have not tested increasing that limit to see what happens. If I have missed any relevant information, please let me know and I'll provide it as soon as possible. Thanks Jason