ID:               35290
 Updated by:       [EMAIL PROTECTED]
 Reported By:      slusarz at curecanti dot org
-Status:           Open
+Status:           Bogus
 Bug Type:         IMAP related
 Operating System: Fedora 3
 PHP Version:      5.0.5
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The php function is a direct wrapper around the rfc822_8bit() c-client
function. So the bug is in the c-client lib and not PHP.


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

[2005-11-19 06:16:48] slusarz at curecanti dot org

Description:
------------
imap_8bit() is broken when it comes to spaces at the end of a line. 
According to RFC 2045 [6.7(3)]:

Octets with values of 9 and 32 MAY be represented as US-ASCII TAB (HT)
and SPACE characters, respectively, but MUST NOT be so represented at
the end of an encoded line.

imap_8bit does nothing to the following line:
foo<SPACE>

the correct encoding would be as follows:
foo=20

Reproduce code:
---------------
echo imap_8bit('foo ');

Expected result:
----------------
foo=20

Actual result:
--------------
foo 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35290&edit=1

Reply via email to