• R David Murray's avatar
    #22215: have the smtplib 'quit' command reset the state. · 0cff49fc
    R David Murray yazdı
    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.
    0cff49fc
smtplib.py 37.9 KB