]> 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:56:49 +0000 (16:56 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 30 Aug 2014 20:56:49 +0000 (16:56 -0400)
commit7234e03cc91186c5d42502697b4fee69d8710eb8
tree0f86f65379393fb0a52c6310bdfe3ed90bdeb4eb
parent57057a6624e1b12beb61eb2f817f9de95bb7d47a
#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