summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-01-17 08:35:49 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-01-17 08:35:49 (GMT)
commitbde4ae4bdeb3328fbc744662ecdebfac52b2d5ba (patch)
tree28ac88b9fbaa834fe5e77389edc1f972ce61b178 /Misc
parentd59f4572798e473d3ed781a7ef615b0967f5e4c3 (diff)
downloadcpython-bde4ae4bdeb3328fbc744662ecdebfac52b2d5ba.zip
cpython-bde4ae4bdeb3328fbc744662ecdebfac52b2d5ba.tar.gz
cpython-bde4ae4bdeb3328fbc744662ecdebfac52b2d5ba.tar.bz2
Fixes (accepts patch) issue1339 - http://bugs.python.org/issue1339
- Factor out the duplication of EHLO/HELO in login() and sendmail() to a new function, ehlo_or_helo_if_needed(). - Use ehlo_or_helo_if_needed() in starttls() - Check for the starttls exception in starttls() in the same way as login() checks for the auth extension. Contributed by Bill Fenner.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 4a494a8..828aab2 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -990,6 +990,12 @@ Library
RFC 3207 and forgets any knowledge obtained from the server not obtained
from the TLS negotiation itself. Patch contributed by Bill Fenner.
+- Issue1339: The smtplib.SMTP class has been refactored a bit such
+ that the SMTP.starttls() caller no longer needs to call ehlo()
+ beforehand. SMTP.starttls() now raises an exception of the server
+ does not claim to support starttls. Adds the SMTP.ehlo_or_helo_if_needed()
+ method. Patch contributed by Bill Fenner.
+
Extension Modules
-----------------