Milan Oberkirch added the comment:
I do not think that the proposed patch solves the bug because it silently
changes binary input. With the patch for issue 19662 a proper solution to avoid
this bug has been applied. The only thing left is to prevent the server to
raise the exception when in legacy mode. Instead of deleting single bytes from
the input (which is what .decode('utf-8', 'ignore') does) I would reply with an
error to the client. The attached patch implements and tests this behaviour.
----------
nosy: +zvyn
Added file:
http://bugs.python.org/file35916/smtpd_undecodable_data_does_not_raise.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19806>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com