From: peterp at podbox dot co dot za Operating system: FreeBSD 5.3 PHP version: 5.0.5 PHP Bug Type: IMAP related Bug description: imap_headers() using pop3, throws notices, fetches entire message
Description: ------------ Calling imap_headers() appears to fetch the ENTIRE message, instead of just the headers whilst using a pop3 mailbox. Not tested on IMAP, I assume it works though. It also produces a bunch of notices, are these because of malformed emails? Reproduce code: --------------- $mBox = imap_open("{my.host.com:110/pop3}INBOX", $Username, $Password); $mHeaders = @imap_headers($mBox); echo '<pre>'; print_r($mHeaders); echo '</pre>'; Expected result: ---------------- imap_headers(); to work correctly. 1) Fetching only the headers 2) Using '@' to supress notices should work? 3) Not produce the PHP "notices." Actual result: -------------- <pre> Array ( [0] => N 1) 6-Oct-2005 WASP ENQUIRIES RE: BULK MMS Testing- wor (24382 chars) [1] => N 2) 6-Oct-2005 JC Fw: technicals.. (1517988 chars) [2] => N 3) 6-Oct-2005 Wynand Meijer - GTMT telkom (2493 chars) [3] => N 4) 6-Oct-2005 Willie van der Merwe Fw: Banking Integration (5313 chars) ) *NOTE* I've removed some of my emails for the sake of keeping this bug report small. Notice: Unknown: Unterminated mailbox: [EMAIL PROTECTED] (errflg=3) in Unknown on line 0 Notice: Unknown: Unexpected characters at end of address: :;> (errflg=3) in Unknown on line 0 Notice: Unknown: Unterminated mailbox: [EMAIL PROTECTED] (errflg=3) in Unknown on line 0 Notice: Unknown: Unexpected characters at end of address: :;> (errflg=3) in Unknown on line 0 Notice: Unknown: Unterminated mailbox: [EMAIL PROTECTED] (errflg=3) in Unknown on line 0 Notice: Unknown: Unexpected characters at end of address: :;> (errflg=3) in Unknown on line 0 </pre> -- Edit bug report at http://bugs.php.net/?id=34763&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34763&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34763&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34763&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34763&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34763&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34763&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34763&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34763&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34763&r=support Expected behavior: http://bugs.php.net/fix.php?id=34763&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34763&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34763&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34763&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34763&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34763&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34763&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34763&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34763&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34763&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34763&r=mysqlcfg