History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-1950
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Satoru Yoshida
Reporter: Satoru Yoshida
Votes: 5
Watchers: 7
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Correct method of encodeHeader "From" for Multibyte name senders

Created: 14/Sep/07 08:49 PM   Updated: 13/Nov/08 02:10 PM
Component/s: Zend_Mail
Affects Version/s: 1.0.2
Fix Version/s: 1.7.0

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0 minutes
Time Spent - 10 minutes
Time Spent: 10 minutes
Time Spent - 10 minutes

Issue Links:
Duplicate
 
Related
 

Tags:
Participants: Nico Edtinger, Satoru Yoshida, Thomas Weidner and Wil Sinclair


 Description  « Hide
I find following sentence in line 515 in Zend/Mail.php.

$this->_storeHeader('From', $this->_encodeHeader('"'.$name.'"').' <'.$email.'>', true);

But it causes error if Sender name contains Multibyte characters and Receiver uses OutlookExpress.
For example , I look in the $this , =?ISO-2022-JP?Q?"=1B$BAw=3F.<T=1B(B"?=.
I think it must be "=?ISO-2022-JP?Q?=1B$BAw=3F.<T=1B(B?=".

I propose to modify the line as next.
$this->_storeHeader('From', '"'.$this->_encodeHeader($name).'"<'.$email.'>', true);

I hope it will useful.



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Thomas Weidner - 15/Sep/07 03:03 PM
Assigned to Nico

Nico Edtinger - 18/Sep/07 04:07 PM
Postponed because encoding will (most likely) be changed to iconv_mime_encode(), which should also fix this issue.

Satoru Yoshida - 07/Nov/08 08:24 AM
Solved in SVN r12370

Wil Sinclair - 13/Nov/08 02:10 PM
Changing issues in preparation for the 1.7.0 release.