[issue1339] smtplib starttls() should ehlo() if it needs to

Bill Fenner report at bugs.python.org
Tue Oct 30 18:38:28 CET 2007


Bill Fenner added the comment:

I've attached a patch against 2.4.3.

The patch does the following:
- Factor out the duplication of EHLO/HELO in login() and sendmail() to a 
new function, ehlo_or_helo_if_needed().
- Use ehlo_or_helo_if_needed() in starttls()
- Check for the starttls exception in starttls() in the same way as 
login() checks for the auth extension.

Added file: http://bugs.python.org/file8665/smtplib-startls-ehlo.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1339>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smtplib-startls-ehlo.diff
Type: application/octet-stream
Size: 2986 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071030/aa4b4ff8/attachment.obj 


More information about the Python-bugs-list mailing list