#37159 [Opn->Bgs]: imap_fetchstructure returns wrong encoding
ID: 37159
Updated by: tony2001@php.net
Reported By: oliver dot block at lycos dot de
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: Unix
PHP Version: 5.1.2
New Comment:
This is what IMAP c-client returns to PHP and we can't fix or change it
in any way.
If you consider it a bug - please report to c-client developers.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2006-04-21 22:35:12] oliver dot block at lycos dot de
Description:
------------
applying imap_fetchstructure to a message return wrong encoding value,
if the message has NO Content-Encoding field.
Reproduce code:
---------------
$stream = imap_open($server, $username, $password);
$msg_struct = imap_fetchstructure($stream, $uid, FT_UID);
$encoding = $msg_struct->encoding;
Expected result:
----------------
If I apply this on a message with NO Content-Encoding field,
$encoding should be equal to 0 -- according to RFC2045, Sect. 6.1.
Actual result:
--------------
If I apply this code on a message with NO Content-Encoding field,
$encoding is equal to 5.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37159&edit=1
Thread (6 messages)