Article View: gnu.emacs.vm.bug
Article #487[Regression] MIME header encoding is broken in VM 8.0.11
From: Ulrich Mueller
Date: Mon, 15 Sep 2008 14:16
Date: Mon, 15 Sep 2008 14:16
35 lines
2398 bytes
2398 bytes
Hi, it seems that somewhere between VM 8.0.9 and 8.0.11, MIME (RFC 1522) encoding of headers broke: VM 8.0.9 would encode the word "R�cksto�d�mpfung" in the Subject line as follows: =?iso-8859-1?Q?R=FCcksto=DFd=E4mpfung?= which is still somewhat readable to the unaided eye. In VM 8.0.11 this now becomes the following: R=?iso-8859-1?B?/A==?=cksto=?iso-8859-1?B?3w==?=d=?iso-8859-1?B?5A==?=mpfung Setting vm-mime-encode-headers-type to Q doesn't help much: R=?iso-8859-1?Q?=FC?=cksto=?iso-8859-1?Q?=DF?=d=?iso-8859-1?Q?=E4?=mpfung If I interpret RFC 1522 correctly, the method of VM 8.0.11 is plain wrong here, since an encoded-word must be surrounded by white space and is not allowed to start in the middle of a word (RFC 1522 section 5): | Ordinary ASCII text and encoded-words may appear together in the same | header field. However, an encoded-word that appears in a header field | defined as "*text" MUST be separated from any adjacent encoded-word or | "text" by linear-white-space. And of course the MIME decoder shouldn't look for "=?" in the middle of a word, but display the above as plain ASCII text (RFC 1522 section 6.1). Ulrich P.S. I also wonder why the default encoding was changed from quoted-printable to binary? This doesn't make much sense, IMHO.
Technical Details
Message-ID:
<umyi9mr4e@a1i15.kph.uni-mainz.de>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder4.cambrium.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.belwue.de!news.Uni-Mainz.DE!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f6829,f3864f02391fb5ef,start X-Google-Attributes: gidf6829,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder4.cambrium.nl!feed.tweaknews.nl!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.belwue.de!news.Uni-Mainz.DE!not-for-mail From: ulm@gentoo.org (Ulrich Mueller) Newsgroups: gnu.emacs.vm.bug Subject: [Regression] MIME header encoding is broken in VM 8.0.11 Date: Mon, 15 Sep 2008 16:16:17 +0200 Organization: Institut fuer Kernphysik, Universitaet Mainz Lines: 35 Message-ID: <umyi9mr4e@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: host2092.kph.uni-mainz.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news1.zdv.uni-mainz.de 1221488177 21384 134.93.134.92 (15 Sep 2008 14:16:17 GMT) X-Complaints-To: news@uni-mainz.de NNTP-Posting-Date: Mon, 15 Sep 2008 14:16:17 +0000 (UTC) Cc: hack@robf.de Cancel-Lock: sha1:qrDvk+Jrgolrk7AmSCbaa9l4e4s=