<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>237730</bug_id>
          
          <creation_ts>2008-09-15 14:25 0000</creation_ts>
          <short_desc>app-emacs/vm-8.0.11.581 MIME header encoding is broken</short_desc>
          <delta_ts>2008-11-06 22:27:04 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://groups.google.com/group/gnu.emacs.vm.bug/browse_thread/thread/f3864f02391fb5ef#</bug_file_loc>
          
          <keywords>REGRESSION</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulm@gentoo.org</reporter>
          <assigned_to>emacs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-09-15 14:25:21 0000</bug_when>
            <thetext>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 &quot;Rückstoßdämpfung&quot; 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&apos;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 &quot;*text&quot; MUST be separated from any adjacent encoded-word or
| &quot;text&quot; by linear-white-space.

And of course the MIME decoder shouldn&apos;t look for &quot;=?&quot; in the middle of a word, but display the above as plain ASCII text (RFC 1522 section 6.1).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-09-15 14:36:41 0000</bug_when>
            <thetext>Package masked ~app-emacs/vm-8.0.11.581.
Broken RFC conformance is serious enough to justify this.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-11-06 22:27:04 0000</bug_when>
            <thetext>Should be fixed in 8.0.12.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>