ID:               34763
 Updated by:       [EMAIL PROTECTED]
 Reported By:      peterp at podbox dot co dot za
-Status:           Open
+Status:           Feedback
 Bug Type:         IMAP related
 Operating System: FreeBSD 5.3
 PHP Version:      5.0.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2005-10-06 17:56:35] peterp at podbox dot co dot za

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 this bug report at http://bugs.php.net/?id=34763&edit=1

Reply via email to