summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtpd.py
Commit message (Collapse)AuthorAgeFilesLines
* #8739: fix omission of DEBUGSTREAM reset in new test in test_smtpd.R David Murray2012-06-041-0/+2
| | | | | This clears up an error in detected by refleak mode that showed up when test_smtplib was run after test_smtpd in the same refleak run.
* #8739: upgrade smtpd to RFC 5321 and 1870.R David Murray2012-05-261-31/+249
| | | | | | | | | | | | | | | | | 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.
* #14269: smtpd now conforms to the RFC and requires HELO before MAIL.R David Murray2012-03-201-1/+47
| | | | | | | | This is a backward incompatible change, but since it is an RFC conformance bug and all real mail servers that I know of do conform to the RFC in this regard, I believe it is an acceptable change for a feature release. Patch by Jason Killen.
* Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's ↵Florent Xicluna2011-12-101-22/+22
| | | | DeprecationWarning (cgi, importlib, nntplib, smtpd).
* Restore smtpd.DEBUGSTREAM at the end of test_smtpd.Antoine Pitrou2011-11-121-0/+2
| | | | This fixes a subsequent refleak in test_smtplib.
* #1745035: add limits for command and data size to smtpd; patch by Savio Sena.Georg Brandl2010-12-031-0/+18
|
* close down sockets held by asyncore at end of test; closes issue9619Richard Jones2010-08-161-0/+2
|
* fix test_smtplib/test_smtpd collision through pre-loaded reply data in ↵Richard Jones2010-08-041-4/+4
| | | | mock_socket
* improve smtpd module test coverageRichard Jones2010-08-041-5/+83
|
* improvements to test_smtplib per issue2423Richard Jones2010-08-031-41/+8
| | | | merged the socket mock introduced in test_smtpd
* Avoid triggering DeprecationWarnings in test_smtpd and smtpd.Georg Brandl2010-07-311-26/+27
|
* Fix #9412: make list of messages an instance attribute instead of class ↵Georg Brandl2010-07-291-1/+3
| | | | attribute.
* New tests for smtpd module. Has full coverage for SMTPChannel and SMTPServer.Richard Jones2010-07-231-0/+221