ZF-10236: Should Zend_Mime_Decode::decodeQuoatedPrintable user quoted_printable_decode instead of iconv_mime_decode

Issue Type: Bug Created: 2010-07-27T09:12:14.000+0000 Last Updated: 2011-05-04T15:26:50.000+0000 Status: Resolved Fix version(s): - 1.11.6 (05/May/11)

Reporter: Brian Strickland (strick) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Mime

Related issues: - ZF-11265



This is more of a question than a bug (well could be a bug). I have emails being saved as files so that I can later parse them for a unit test. And example of the body:


=0D=0AHello Brian Strickland,

=0D=0A=0D=0Adept editor has= requested Department - Editor access for Department of= Art. A user with Department - Editor access will be a= ble to do the following:=0D=0A



Update any Department= {quote} ... When I do the following, nothing changes: $body = ""; Zend_Mime_Decode::splitMessage(file_get_contents($emailFile), $headers, $body); print Zend_Mime_Decode::decodeQuotedPrintable($body); But when I do Zend_Mime_Decode::splitMessage(file_get_contents($emailFile), $headers, $body); print quoted_printable_decode($body); All of the =0D=0A and ='s get cleared out (which is what I wanted.) Maybe I'm just not using Zend_Mime_Decode correctly.


Posted by Adam Lundrigan (adamlundrigan) on 2011-05-02T22:40:13.000+0000

Created patch with suggested fix. Removing this method would break BC, so i've changed the encapsulated method call to quoted_printable_decode() as suggested.

Patch had no visible effect on results of phpunit AllTests run.

Posted by Adam Lundrigan (adamlundrigan) on 2011-05-02T22:41:41.000+0000

Fixed in trunk r23944

Posted by Adam Lundrigan (adamlundrigan) on 2011-05-04T15:22:18.000+0000

Ralph merged r23944 from trunk to release branch 1.11 r23984

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.