]> granicus.if.org Git - python/commit
#19662: add decode_data to smtpd so you can get at DATA in bytes form.
authorR David Murray <rdmurray@bitdance.com>
Wed, 11 Jun 2014 15:18:08 +0000 (11:18 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 11 Jun 2014 15:18:08 +0000 (11:18 -0400)
commit554bcbf1b925399ef06dd9fd6b87a20f5d028c1e
treefa7bc0ec474895b0051422d855065960eb68c3ca
parent38ee9afb34d8eb3fc7d080c447f245ab8369934d
#19662: add decode_data to smtpd so you can get at DATA in bytes form.

Otherwise smtpd is restricted to 7bit clean data, since even if the
incoming data is actually utf-8, it will often break things to decode
it before parsing the message.

Patch by Maciej Szulik, with some adjustments (mostly the warning
support).
Doc/library/smtpd.rst
Doc/whatsnew/3.5.rst
Lib/smtpd.py
Lib/test/test_smtpd.py