[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2014-03-10 Thread Don Dwiggins
Don Dwiggins added the comment: Varun, thanks for the patch; sounds like the right way to go, in that it should work whether the usage is single-connection or multiple-connection. Ideally, the documentation would be expanded a bit to clarify just which attributes get reset on close

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2011-02-08 Thread Don Dwiggins
Don Dwiggins added the comment: I have no pressing need for it. I'm happy enough with Martin's idea of single-use instances, as long as they're clearly documented as such, and don't "pretend" to work for a subsequent connect. I'd also be happy with instanc

[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2008-10-17 Thread Don Dwiggins
New submission from Don Dwiggins <[EMAIL PROTECTED]>: Found on Windows, running Python 2.4.3. SMTP.login() and SMTP.sendmail set one of the attributes ehlo_resp or helo_resp to whatever the server responded (only if they're not already set). SMTP.quit() doesn't clear these a