[Bug 4370] New: mercurial.mail improperly encodes with long lines + non-ASCII in mimetextqp

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Sep 15 14:07:31 CDT 2014


http://bz.selenic.com/show_bug.cgi?id=4370

          Priority: normal
            Bug ID: 4370
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: mercurial.mail improperly encodes with long lines +
                    non-ASCII in mimetextqp
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: kat at hypatian.org
          Hardware: All
            Status: UNCONFIRMED
           Version: 3.1.1
         Component: Mercurial
           Product: Mercurial

The mimetextqp function in mercurial.mail contains logic to automatically turn
on quoted-printable encoding if lines longer than 950 characters are found.
Unfortunately, this logic doesn't work when the standard Python email.MIMEText
routines independently decide to encode the content using base64, as they do
when using utf-8 encoding for non-ASCII characters.

The end result of this is that when both lines longer than 950 characters and
non-ASCII characters are present, mimetextqp will produce output that is base64
encoded, but with the Content-Transfer-Encoding set to quoted-printable in the
header.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list