Summary | Subject didn't encode with attachment |
Queue | Horde Framework Packages |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | slusarz (at) horde (dot) org |
Requester | wangshichen17 (at) gmail (dot) com |
Created | 05/06/2011 (5171 days ago) |
Due | |
Updated | 05/17/2011 (5160 days ago) |
Assigned | 05/15/2011 (5162 days ago) |
Resolved | 05/16/2011 (5161 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Version ⇒
Queue ⇒ Horde Framework Packages
State ⇒ Resolved
Bug #10054: Fix encoding of headers if charset passed to toArray() is empty2 files changed, 10 insertions(+), 9 deletions(-)
http://git.horde.org/horde-git/-/commit/cb19d4a5c5ae67989ecaadd59e9fecfe760163b0
Assigned to Michael Slusarz
State ⇒ Assigned
affected ist not only the subject header block. from address name and
to address name have the same bug.
word. Do you think that it is the reason caused this problem??
In fact, I have thought that it might be the problem of Big-5 charset.
Therefore, i also tested for the UTF-8 charset.
Then, I found the same problem when using the UTF-8 charset.
even though it represents an 8+bit representation? That would explain
this behavior. See, e.g., Horde_mime::is8bit:
/* ISO-2022-JP is a 7bit charset, but it is an 8bit representation so
* it needs to be entirely encoded. */
return is_string($string) &&
((stristr('iso-2022-jp', $charset) &&
(strstr($string, "\x1b\$B"))) ||
preg_match('/[\x80-\xff]/', $string));
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Subject didn't encode with attachment
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Recently, I found an encoding bug when sending the mail with imp application.
by the way, my imp version is 5.0.0 and horde version is 4.0.0.
and i write the mail (content and the subject) in Chinese (encoding
in Big-5).
i found the bug as followed:
when sending the mail without the attachment , the subject of the mail
will be encoded in
Big-5 . But when sending the mail with attachment, I found that the
subject of the mail will be directly write into the subject header
other than being encoded in Big-5.
And this will lead to that when I used the newly version horde and IMP
to read this mail, it will display in incorrect Chinese word. But if
using the Gmail to read the mail, it will be OK. I think it is because
that Gmail will check whether the subject is encoded or not , then
doing additional processing.