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

2014-03-09 Thread Varun Sharma
Varun Sharma added the comment: I have added a patch and it's test case as per martin's suggestions. Now function close() resets the attributes :sock, default_port, ehlo_msg, ehlo_resp, helo_resp, source_address But it does *not* reset : debuglevel, does_esmtp,esmtp_feat

[issue20770] Inform caller of smtplib STARTTLS failures

2014-03-04 Thread Varun Sharma
Varun Sharma added the comment: I think that raising an exception for starttls failure can be avoided, so i have added a patch for documentation which adds the following line to doc string : "If server supports TLS but fails to start it, then it does not raise any exce

[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload("some string")

2014-03-02 Thread Varun Sharma
Varun Sharma added the comment: Sorry :) -- Added file: http://bugs.python.org/file34273/test_email_attach_to_string_11558.patch ___ Python tracker <http://bugs.python.org/issue11

[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload("some string")

2014-03-02 Thread Varun Sharma
Varun Sharma added the comment: I have fixed the pep8 voilations and shortened the regex as you suggested in the new patch. -- Added file: http://bugs.python.org/file34270/test_email_attach_to_string_11558.patch ___ Python tracker <h

[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload("some string")

2014-03-02 Thread Varun Sharma
Varun Sharma added the comment: Afer getting a lot of help from david on irc, i finally improved the patch. Now it catches AttributeError and raises TypeError for non-object types in attach function. -- Added file: http://bugs.python.org/file34269/test_email_attach_to_string.patch

[issue11558] Raise a more helpful exception in email.message.Message.attach after set_payload("some string")

2014-03-01 Thread Varun Sharma
Varun Sharma added the comment: I have made a patch which raises TypeError whenever a string type payload is attached to message using email.Message.attach() method.I have also added a unit test for the same. Need review. -- keywords: +patch nosy: +varun Added file: http

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2014-02-28 Thread Varun Sharma
Changes by Varun Sharma : -- nosy: +varun ___ Python tracker <http://bugs.python.org/issue6598> ___ ___ Python-bugs-list mailing list Unsubscribe: