[Bug 159995] New: Address fields encoded incorrectly
Sergei Beilin
sbeilin at narod.ru
Fri Mar 28 08:57:19 GMT 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=159995
Summary: Address fields encoded incorrectly
Product: kmail
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdepim-bugs kde org
ReportedBy: sbeilin narod ru
Version: (using Devel)
Installed from: Compiled sources
Compiler: gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
OS: Linux
The To, From, Cc and Bcc fields are encoded incorrectly, if contatin non-Latin chars. Only the display name must be encoded, while the mail address itself should left as-is.
For example, my work email address, with my name in Russian, gets encoded as
=?utf-8?B?0KHQtdGA0LPQtdC5INCR0LXQudC70LjQvSA8c2JlaWxpbkBsYWItbS5ydT4=?=
while must be (domain name hidden to avoid spam)
"=?utf-8?b?0KHQtdGA0LPQtdC5INCR0LXQudC70LjQvQ==?= <sbeilin MYWORK ru>"
This error leads to the following message (kmmessage.cpp:2251)
kmail(4815) KMMessage::splitAddrField: Error in address splitting: parseAddressList returned false!
and messages stay in Outbox.
Reverting kmmsgbase.h and kmmsgbase.cpp to revision r788000 fixes the problem.
It seems that the following commit
r788330 | tmcguire | 2008-03-21 15:36:46 +0400 (Fri, 21 Mar 2008) | 2 lines
Use decode/encodeRFC2047String from KMime instead of rolling our own.
is the source.
More information about the Kdepim-bugs
mailing list