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
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
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
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
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
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
Changes by Varun Sharma :
--
nosy: +varun
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Python-bugs-list mailing list
Unsubscribe: