|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-07 09:25 UTC] sniper@php.net
[2005-10-15 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 06:00:01 2025 UTC |
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: Undisclosed-Recipient@.MISSING-HOST-NAME. (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: Undisclosed-Recipient@.MISSING-HOST-NAME. (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: Undisclosed-Recipient@.MISSING-HOST-NAME. (errflg=3) in Unknown on line 0 Notice: Unknown: Unexpected characters at end of address: :;> (errflg=3) in Unknown on line 0 </pre>