[issue27513] email.utils.getaddresses raises exception from erroneous message get_all input
Hans-Peter Jansen
report at bugs.python.org
Thu Jul 14 06:56:08 EDT 2016
Hans-Peter Jansen added the comment:
message.get cannot decode the header correctly, and returns a Header instance instead, which makes email.utils.getaddresses stumble upon...
A much better behavior for getaddresses in this case would be returning the perfectly valid address, and ignoring the invalid dtext part.
----------
Added file: http://bugs.python.org/file43715/decode_from_header.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27513>
_______________________________________
More information about the Python-bugs-list
mailing list