[issue11783] email parseaddr and formataddr should be IDNA aware

R. David Murray report at bugs.python.org
Fri Jun 2 11:41:34 EDT 2017


R. David Murray added the comment:

The email package currently forces explicit IDNA use currently.  The new policies are supposed to support it automatically but I they currently don't.  I'm not sure we should add it to the old interface (parseaddr/formataddr) any longer, but I don't object to doing it, either.

Not handling idna automatically would go against the entire design of the new email policies, which is to produce unicode from the wire encoding for programs to work with, and convert back to wire protocol on output.

The work on resolving the idna2008 issue belongs in issue #17305, where MvL (who wrote the original idna codec) points to IMO the correct solution (a uts46 codec) in msg217218.

----------
versions: +Python 3.7 -Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11783>
_______________________________________


More information about the Python-bugs-list mailing list