Kushal Das added the comment:
New version of the patch which can be successfully applied to tip.
--
Added file: http://bugs.python.org/file34817/issue17498_v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17498
Roundup Robot added the comment:
New changeset 3c441e9ccf87 by R David Murray in branch '3.4':
#17498: Defer SMTPServerDisconnected errors until the next command.
http://hg.python.org/cpython/rev/3c441e9ccf87
New changeset 842014ab1c06 by R David Murray in branch 'default':
Merge #17498: Defer
R. David Murray added the comment:
Thanks, Kushal. Sorry it took so long to get this committed :)
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
type: - behavior
versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3
New submission from R. David Murray:
If an SMTP server returns an error code and then closes the connection, smtplib
will attempt to send an RSET command, which will then raise a socket error,
which smtplib turns into a ServerDisconnectedError, thereby loosing the
information about what error
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17498
___
___
Python-bugs-list
Kushal Das added the comment:
Working on a patch for this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17498
___
___
Python-bugs-list mailing
Kushal Das added the comment:
The following patch adds a _rset method which catches any
SMTPServerDisconnected exception, also includes the corresponding test and
test_421_from_mail_cmd assert statement typo fix.
--
keywords: +patch
Added file: