]> granicus.if.org Git - python/commit
#8739: upgrade smtpd to RFC 5321 and 1870.
authorR David Murray <rdmurray@bitdance.com>
Sat, 26 May 2012 18:33:59 +0000 (14:33 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 26 May 2012 18:33:59 +0000 (14:33 -0400)
commitd1a30c939cc6378423dd3cc22382a9abe2a7d882
treed083d5bab633c09a9e9857987f8d2b960a00c396
parent032eed3c4a42ca29de2c07fba2e0555eaff1700c
#8739: upgrade smtpd to RFC 5321 and 1870.

smtpd now handles EHLO and has infrastructure for extended smtp command mode.
The SIZE extension is also implemented.  In order to support parameters on
MAIL FROM, the RFC 5322 parser from the email package is used to parse the
address "token".

Logging subclasses things and overrides __init__, so it was necessary to
update those __init__ functions in the logging tests to make the logging tests
pass.

The original suggestion and patch were by Alberto Trevino.  Juhana Jauhiainen
added the --size argument and SIZE parameter support.  Michele OrrĂ¹ improved
the patch and added more tests.  Dan Boswell conditionalized various bits of
code on whether or not we are in HELO or EHLO mode, as well as some other
improvements and tests.  I finalized the patch and added the address parsing.
Doc/library/smtpd.rst
Lib/smtpd.py
Lib/test/test_logging.py
Lib/test/test_smtpd.py
Lib/test/test_smtplib.py
Misc/ACKS
Misc/NEWS