← Back to team overview

vm team mailing list archive

[Bug 323979] Re: [PATCH] vm-mime.el:vm-mime-encode-words creates garbled X-VM-v5-Data

 

** Tags added: international
** Tags removed: intenational

-- 
[PATCH] vm-mime.el:vm-mime-encode-words creates garbled X-VM-v5-Data
https://bugs.launchpad.net/bugs/323979
You received this bug notification because you are a member of VM
development team, which is the registrant for VM (defunct).

Status in VM - Goto http://launchpad.net/vm for active development: Incomplete
Status in VM (View Mail) for Emacs: Incomplete
Status in VM 8.0.x series: Incomplete
Status in VM trunk series: Incomplete

Bug description:
VM 8.0.12
X-VM-v5-Data is encoded by vm-mime.el:vm-mime-encode-words, 
unfortunately, it is not aware of quote marks, so when it encounters 
a string: 
"\"Wechikuł czasu"\" it encodes it as follows:
"=?utf-8?Q?\"Wehiku=C5=82 czasu\"?="
As You can notice, quote marks are inside, making this string impossible to
evaluate later.

My proposed fix is to change vm-vars.el:vm-mime-encode-headers-words-regexp so it doesn't span over " marks.
(see patch)
After this change, string is encoded as follows:

"\"=?utf-8?Q?Wehiku=C5=82?= czasu\""