Bug #13342 Updated: A ! every 2041 letters
| From: | swm@php.net | Date: | Mon, 17 Sep 2001 10:56:19 +0000 |
| Subject: | Bug #13342 Updated: A ! every 2041 letters | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66108@lists.php.net to get a copy of this message | ||
ID: 13342
Updated by: swm
Reported By: btrinquier@publicis.fr
Status: Feedback
Bug Type: Mail related
Operating System: Linux/Apache
PHP Version: 4.0.4pl1
New Comment:
I cannot recreate this 4.0.5 or current CVS. As for line
length, RFC 821 says the following:
text line
The maximum total length of a text line including the
<CRLF> is 1000 characters (but not counting the leading
dot duplicated for transparency).
Theorectically, it is the responsibility of the MTA
(sendmail/postfix/Exim/qmail etc) to handle this not PHP.
Can you recreate this with current CVS?
Previous Comments:
------------------------------------------------------------------------
[2001-09-17 06:36:57] hholzgra@php.net
most likely sendmail related
as PHP mail() for unix just passes the
message text to the local sendmail binary via popen()
could someone please check the SMTP RFCs
for line length limits ?
------------------------------------------------------------------------
[2001-09-17 06:17:29] btrinquier@publicis.fr
Hello,
The script :
$mail_body = "";
for ($i=0; $i <500; $i++) {
$mail_body .=
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
}
$subject = "Testing";
mail($adress, $subjet, $mail_body);
When receiving the mail, a character ! is inserted every 2041 chars.
If the message is changed into :
$mail_body .=
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n";
the received mail is good.
It is not very usual to send a mail without carriage return, but we discovered this bug sending an
HTML message, with <br> and without \n. Introducing some \n resolve the problem.
Best regards
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13342&edit=1