[New-bugs-announce] [issue27977] smtplib send_message does not correctly handle unicode addresses if message uses EmailPolicy

R. David Murray report at bugs.python.org
Tue Sep 6 14:43:52 EDT 2016


New submission from R. David Murray:

In rewriting the examples in the email docs to use the new policies, I discovered that smtplib has a bug when handling a message that uses an EmailPolicy derived policy if the addresses contain unicode characters.  Currently it is extracting the addresses as unicode strings instead of transport encoded strings.  It needs a special case to handle EmailPolicy Messages.

----------
components: email
messages: 274597
nosy: barry, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: smtplib send_message does not correctly handle unicode addresses if message uses EmailPolicy
type: behavior
versions: Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list