• R David Murray's avatar
    #22215: have the smtplib 'quit' command reset the state. · 7234e03c
    R David Murray authored
    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.
    7234e03c
smtplib.py 30.7 KB