]> granicus.if.org Git - python/commit
#22215: have the smtplib 'quit' command reset the state.
authorR David Murray <rdmurray@bitdance.com>
Sat, 30 Aug 2014 20:51:59 +0000 (16:51 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 30 Aug 2014 20:51:59 +0000 (16:51 -0400)
commit0cff49fcf9b5689a8940c318ea0d846317f3a7d3
tree6cfaf2c7f2cd5ae1bec06c6dabab72b23d3e9939
parenta64b92edd3b7c9145e014aac9a15821d7b05b71a
#22215: have the smtplib 'quit' command reset the state.

Without this reset, starttls would fail if a connect/starttls was done after a
quit, because smtplib assumed the existing value of emspt_features was
accurate, but it gets reset when starttls completes (and the new value does
not contain the starttls capability, since tls is already started at that
point).  (There may be additional places where this lack of reset was an
issue as well.)

Patch by Milan Oberkirch.
Lib/smtplib.py
Lib/test/test_smtplib.py
Misc/NEWS