[issue34104] email.message.get_payload should enforce correct encoding
R. David Murray
report at bugs.python.org
Thu Jul 12 15:54:35 EDT 2018
R. David Murray <rdmurray at bitdance.com> added the comment:
It looks like the virus checkers are not doing robust decoding that the email RFCs recommend, and that thunderbird is. This is obviously a bug in the virus scanners. By default, like thunderbird, the email library does its best to decode attachments. If you want your application to reject such attachments, then in python3 you can check for defects after doing the get_payload, or you can set the policy to 'strict' (that is, raise_on_defect=True) when parsing the email.
----------
nosy: +r.david.murray
resolution: -> out of date
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34104>
_______________________________________
More information about the Python-bugs-list
mailing list