summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_smtpd.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-29639: change test.support.HOST to "localhost"Gregory P. Smith2017-09-091-2/+2
| | | | | | | | | | test.support.HOST should be "localhost" as it was in the past. See the bpo-29639. Tests that need the IP address should use HOSTv4 (added) or the existing HOSTv6 constant. This changes the definition and fixes tests that needed updating to deal with HOST being the hostname rather than the hardcoded IP address. This is only the first step in addressing https://bugs.python.org/issue29639.
* Issue #27110: Add smtpd.SMTPChannel to __all__, by Jacek KołodziejMartin Panter2016-06-061-0/+11
|
* Issue #27033: The default value of the decode_data parameter forSerhiy Storchaka2016-05-161-29/+12
| | | | smtpd.SMTPChannel and smtpd.SMTPServer constructors is changed to False.
* #25328: add missing raise keyword in decode_data+SMTPUTF8 check.R David Murray2015-10-091-0/+6
| | | | | | | This is a relatively benign bug, since having both be true was correctly rejected at in SMTPServer even before this patch. Patch by Xiang Zhang.
* #21795: advertise 8BITMIME if decode_data is False.R David Murray2015-05-111-21/+108
| | | | | | 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.
* #21725: Add RFC 6531 (SMTPUTF8) support to smtpd.R David Murray2014-08-091-13/+243
| | | | | | | | | | | Patch by Milan Oberkirch, developed as part of his 2014 GSOC project. Note that this also fixes a bug in mock_socket ('getpeername' was returning a simple string instead of the tuple required for IPvX protocols), a bug in DebugServer with respect to handling binary data (should have been fixed when decode_data was introduced, but wasn't found until this patch was written), and a long-standing bug in DebugServer (it was printing an extra blank line at the end of the displayed message text).
* #14758: add IPv6 support to smtpd.R David Murray2014-06-111-8/+43
| | | | Patch by Milan Oberkirch.
* #19662: add decode_data to smtpd so you can get at DATA in bytes form.R David Murray2014-06-111-7/+111
| | | | | | | | | 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).
* #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