← 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

 

** Also affects: vm
   Importance: Undecided
       Status: New

** Also affects: vm/8.0.x
   Importance: Undecided
       Status: New

** Also affects: vm/trunk
   Importance: Undecided
       Status: New

** Changed in: vm/8.0.x
       Status: New => Fix Released

** Changed in: vm/8.0.x
    Milestone: None => 8.0.13

** Changed in: vm/trunk
       Status: New => Fix Committed

** Changed in: vm/trunk
    Milestone: None => 8.1.0-beta

** Changed in: viewmail
       Status: New => Fix Released

** Changed in: vm/8.0.x
    Milestone: 8.0.13 => None

** Changed in: viewmail
       Status: Fix Released => Fix Committed

** Changed in: vm/8.0.x
       Status: Fix Released => Fix Committed

-- 
[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: Fix Committed
Status in VM (View Mail) for Emacs: Fix Committed
Status in VM 8.0.x series: Fix Committed
Status in VM trunk series: Fix Committed

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\""