This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ThomasAH
Recipients ThomasAH, barry, docs@python, iritkatriel, littleq0903, paulproteus, python-dev, r.david.murray, rdemetrescu
Date 2021-12-13.09:53:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639389187.38.0.688205177315.issue1525919@roundup.psfhosted.org>
In-reply-to
Content
Default python3 on Debian buster:
$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import email.mime.text
>>> mt = email.mime.text.MIMEText('Ta mère', 'plain', 'utf-8')
>>> print(mt.as_string())
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

VGEgbcOocmU=

>>> email.encoders.encode_quopri(mt)
>>> print(mt.as_string())
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Transfer-Encoding: quoted-printable

Ta=20m=C3=A8re

So the encoded text looks good now, but there are still duplicate headers.

Old output (python2.7) is identical to what Asheesh Laroia (paulproteus)
reported for python2.5:
---
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Transfer-Encoding: quoted-printable

VGEgbcOocmU=3D
---
History
Date User Action Args
2021-12-13 09:53:07ThomasAHsetrecipients: + ThomasAH, barry, rdemetrescu, paulproteus, r.david.murray, docs@python, python-dev, littleq0903, iritkatriel
2021-12-13 09:53:07ThomasAHsetmessageid: <1639389187.38.0.688205177315.issue1525919@roundup.psfhosted.org>
2021-12-13 09:53:07ThomasAHlinkissue1525919 messages
2021-12-13 09:53:07ThomasAHcreate