Bug #19653 [Com]: Mail_mimePart::encodeHeader() strips off quotes

From: Date: Mon, 15 Oct 2012 13:22:38 +0000
Subject: Bug #19653 [Com]: Mail_mimePart::encodeHeader() strips off quotes
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9187@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19653&edit=1 ID: 19653 Comment by: debugger@brotherli.ch Reported By: debugger at brotherli dot ch Summary: Mail_mimePart::encodeHeader() strips off quotes Status: Open Type: Bug Package: Mail_Mime Package Version: 1.8.5 PHP Version: 5.3.10 Roadmap Versions: New Comment: I experience some clients (e.g. Roundcube, Postbox for Mac) having problems to correctly decode the recipient list if quotes are missing. It might indeed be a bug of these applications but Thunderbird for example encodes the headers including the quotes. Feel free to close this ticket and delegate the problem to these clients. Previous Comments: ------------------------------------------------------------------------ [2012-10-15 14:07:29] alec If the header is encoded, quotes aren't needed. Please, provide a sample script that demonstrates your issue. Also input and output, how it looks now and what do you expect. ------------------------------------------------------------------------ [2012-10-15 14:05:16] brotherli Description: ------------ When encoding a quotes message header such as "Lastnäme, Firstnäme" <mail@somedomain.tld> the quotes are removed while encoding the header into quoted- printable. This is done on line 878 with $word = substr($word, 1, -1); The quotes around the above mentioned example header are essential because the name part contains a comma which is used as a common delimiter in recipient lists. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19653&edit=1

« previous php.pear.bugs (#9187) next »