New submission from R. David Murray:

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.

----------
components: email
files: email_smtputf8.patch
keywords: patch
messages: 243368
nosy: barry, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: Add RFC 6532 support to the email library
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file39396/email_smtputf8.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24211>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to