diff options
author | R David Murray <rdmurray@bitdance.com> | 2015-05-11 16:11:40 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2015-05-11 16:11:40 (GMT) |
commit | a33df31629f2f6ed85890baa9b4e71c30efa95a9 (patch) | |
tree | 00602e680a45fbb39ac9127995764b92ee096488 /Doc/whatsnew | |
parent | 0d905d4fcdb39119f763afd4036cfaea78a2ae5b (diff) | |
download | cpython-a33df31629f2f6ed85890baa9b4e71c30efa95a9.zip cpython-a33df31629f2f6ed85890baa9b4e71c30efa95a9.tar.gz cpython-a33df31629f2f6ed85890baa9b4e71c30efa95a9.tar.bz2 |
#21795: advertise 8BITMIME if decode_data is False.
Patch by Milan Oberkirch, with a few updates. This changeset also
tweaks the smtpd and whatsnew docs for smtpd into what should be
the final form for the 3.5 release.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 02a7065..86febb0 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -468,16 +468,28 @@ smtpd transaction is decoded using the ``utf-8`` codec or is instead provided to :meth:`~smtpd.SMTPServer.process_message` as a byte string. The default is ``True`` for backward compatibility reasons, but will change to ``False`` - in Python 3.6. (Contributed by Maciej Szulik in :issue:`19662`.) + in Python 3.6. If *decode_data* is set to ``False``, the + :meth:`~smtpd.SMTPServer.process_message` method must be prepared to accept + keyword arguments. (Contributed by Maciej Szulik in :issue:`19662`.) + +* :class:`~smtpd.SMTPServer` now advertises the ``8BITMIME`` extension + (:rfc:`6152`) if if *decode_data* has been set ``True``. If the client + specifies ``BODY=8BITMIME`` on the ``MAIL`` command, it is passed to + :meth:`~smtpd.SMTPServer.process_message` via the ``mail_options`` keyword. + (Contributed by Milan Oberkirch and R. David Murray in :issue:`21795`.) + +* :class:`~smtpd.SMTPServer` now supports the ``SMTPUTF8`` extension + (:rfc:`6531`: Internationalized Email). If the client specified ``SMTPUTF8 + BODY=8BITMIME`` on the ``MAIL`` command, they are passed to + :meth:`~smtpd.SMTPServer.process_message` via the ``mail_options`` keyword. + It is the responsibility of the :meth:`~smtpd.SMTPServer.process_message` + method to correctly handle the ``SMTPUTF8`` data. (Contributed by Milan + Oberkirch in :issue:`21725`.) * It is now possible to provide, directly or via name resolution, IPv6 addresses in the :class:`~smtpd.SMTPServer` constructor, and have it successfully connect. (Contributed by Milan Oberkirch in :issue:`14758`.) -* :mod:`~smtpd.SMTPServer` now supports :rfc:`6531` via the *enable_SMTPUTF8* - constructor argument and a user-provided - :meth:`~smtpd.SMTPServer.process_smtputf8_message` method. - smtplib ------- |