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.

Title: Add RFC 6532 support to the email library
Type: enhancement Stage: resolved
Components: email Versions: Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barry, maciej.szulik, python-dev, r.david.murray
Priority: normal Keywords: patch

Created on 2015-05-16 21:19 by r.david.murray, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
email_smtputf8.patch r.david.murray, 2015-05-16 21:34 review
Messages (5)
msg243368 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-05-16 21:19
I could have sworn there was an issue for this already, but I couldn't find it.

Attached patch adds a utf8 policy knob and an SMTPUTF8 policy instance, and modifies BytesGenerator and the _header_value_parser to use that policy setting to generate utf8 headers instead of encoding non-ascii using encoded words.  (I designed the new code to make it easy to support this RFC, but even I had no idea the patch would be so small.  I hope I didn't miss anything.)

I will probably commit this tomorrow, since the deadline is looming.
msg243403 - (view) Author: Maciej Szulik (maciej.szulik) * (Python triager) Date: 2015-05-17 14:51
David one small nit in docs, but otherwise the patch looks good, applies cleanly and works as expected.
msg243408 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-05-17 15:29
New changeset 9f0d5e33230f by R David Murray in branch 'default':
#24211: Add RFC6532 support to the email library.
msg243412 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-05-17 16:17
Thanks, Maciej.
msg243432 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-05-17 23:38
New changeset 4a254750ad20 by R David Murray in branch 'default':
#24211: Add missing docs for SMTPUTF8 policy instance.
Date User Action Args
2022-04-11 14:58:16adminsetgithub: 68399
2015-05-17 23:38:15python-devsetmessages: + msg243432
2015-05-17 16:17:21r.david.murraysetstatus: open -> closed
resolution: fixed
messages: + msg243412

stage: patch review -> resolved
2015-05-17 15:29:53python-devsetnosy: + python-dev
messages: + msg243408
2015-05-17 14:51:38maciej.szuliksetmessages: + msg243403
2015-05-17 14:25:44maciej.szuliksetnosy: + maciej.szulik
2015-05-16 21:35:10r.david.murraysetfiles: - email_smtputf8.patch
2015-05-16 21:34:50r.david.murraysetfiles: + email_smtputf8.patch
2015-05-16 21:19:09r.david.murraycreate