vm team mailing list archive
-
vm team
-
Mailing list archive
-
Message #00141
[Bug 323979] Re: [PATCH] vm-mime.el:vm-mime-encode-words creates garbled X-VM-v5-Data
Ulrich, I have tried this patch, but I don't think it is doing what was
claimed. Can you double check? -- Uday
** Changed in: vm/8.0.x
Status: Fix Committed => In Progress
** Changed in: viewmail
Status: Fix Committed => In Progress
** Changed in: vm/trunk
Status: Fix Committed => In Progress
--
[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: In Progress
Status in VM (View Mail) for Emacs: In Progress
Status in VM 8.0.x series: In Progress
Status in VM trunk series: In Progress
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\""