ID: 37159 User updated by: oliver dot block at lycos dot de Reported By: oliver dot block at lycos dot de Status: Bogus Bug Type: IMAP related Operating System: Unix PHP Version: 5.1.2 New Comment:
Thanks for your response. I'll do that. Yes, it is a bug. I am sure. Previous Comments: ------------------------------------------------------------------------ [2006-04-22 08:11:54] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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