ID: 24805
Updated by: iliaa@php.net
Reported By: bobe at phpcodeur dot net
-Status: Open
+Status: No Feedback
Bug Type: Mail related
Operating System: Linux
PHP Version: 4.3.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
It works perfectly on 4.3.3dev for me.
Previous Comments:
------------------------------------------------------------------------
[2003-07-27 10:37:07] bobe at phpcodeur dot net
"The separator for long headers should be "\r\n" followed by either a
space or a "\t""
It is exactely what i do..
The bug tracker put the long subject of my previous example on 2 lines
but it is a sequence \r\n<SP>
This code also reproduces the bug :
mail(
'bobe@phpcodeur.net',
"this is a long subject \r\n to test the mail function",
'This is the message',
"From: my@domain.tld\nMIME-Version: 1.0"
);
------------------------------------------------------------------------
[2003-07-26 20:17:52] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
The separator for long headers should be "\r\n" followed by either a
space or a "\t" no other character such as "\n" or "\r" will be
accepted. If you don't use tab or a space entire sequence will be
converted to spaces.
------------------------------------------------------------------------
[2003-07-26 05:31:55] bobe at phpcodeur dot net
The bug occurs for example with this code :
mail(
'test@domain.tld',
"=?iso-8859-1?Q?ceci_est_un_petit_test_pour_d=E9terminer_les_bugs_?=\r\n
=?iso-8859-1?Q?existants_avec_la_classe_mail?=",
'This is the message',
"From: my@domain.tld\nMIME-Version: 1.0"
);
result is :
------------
=?iso-8859-1?Q?existants_avec_la_classe_mail?=
From: my@domain.tld
MIME-Version: 1.0
This is the message.
------------
Maybe that the problem occurs with qmail because there are sequences
\r\n instead of \n in long subject ?
------------------------------------------------------------------------
[2003-07-25 17:46:55] iliaa@php.net
Where is the bug occuring imap, or something else? Who does the message
parsing?
------------------------------------------------------------------------
[2003-07-25 12:22:17] bobe at phpcodeur dot net
Sorry for the bad translation :/
note that quoted-printable encoding plays no role in the problem
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24805--
Edit this bug report at http://bugs.php.net/?id=24805&edit=1