Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #9722 _quotedPrintableEncode does not encode dot at start of line on Windows platform
Submitted: 2007-01-03 01:00 UTC
From: marc at durdin dot net Assigned: cipri
Status: Closed Package: Mail_Mime (version 1.3.1)
PHP Version: Irrelevant OS: Windows Server 2003
Roadmaps: 1.4.0, 1.4.0a2    
Subscription  


 [2007-01-03 01:00 UTC] marc at durdin dot net (Marc Durdin)
Description: ------------ _quotedPrintableEncode does not encode dot when it occurs at the start of the line. On Windows Server 2003 (mail server MailEnable Professional), this results in a doubled dot in the received email when the mail is sent using the mail() function. A simple workaround is to encode dot to =2E when it is at the start of a line, which is what I have done. This is related to the requirement for SMTP clients to end messages with a single dot on a new line, or use a double dot when a dot appears at the start of a line in the message. It appears that somewhere this double-dot is being replicated. I have not identified what is actually causing the dot to be duplicated (or tripled?). Test script: --------------- A workaround is to add this just before $newline .= $char in the _quotedPrintableEncode function in mimePart.php: if(($dec == 46) AND ($newline == '')) { // convert full-stop at bol (for Windows mail function) $char = '=2E'; }

Comments

 [2007-03-08 17:23 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-03-15 14:02 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-05-05 15:07 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!