Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision afb151a5cc6fb1012d4b2827d2fdcbf98c07206d authored by R David Murray on 14 April 2014, 22:21:38 UTC, committed by R David Murray on 14 April 2014, 22:21:38 UTC
Normally an SMTP server will return an error, and smtplib will then issue an RSET to return the connection to the known starting state. Some servers, however, disconnect after issuing certain errors. When we issue the RSET, this would result in raising an SMTPServerDisconnected error, *instead* of returning the error code the user of the library was expecting. This fix makes the internal RSET calls ignore the disconnection so that the error code is returned. The user of the library will then get the SMTPServerDisconnected error the next time they try to talk to the server. Patch by Kushal Das.
1 parent 4a24d09
Tip revision: afb151a5cc6fb1012d4b2827d2fdcbf98c07206d authored by R David Murray on 14 April 2014, 22:21:38 UTC
#17498: Defer SMTPServerDisconnected errors until the next command.
#17498: Defer SMTPServerDisconnected errors until the next command.
Tip revision: afb151a
File | Mode | Size |
---|---|---|
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 584 bytes |
.gitignore | -rw-r--r-- | 960 bytes |
.hgeol | -rw-r--r-- | 800 bytes |
.hgignore | -rw-r--r-- | 1.2 KB |
.hgtags | -rw-r--r-- | 6.5 KB |
.hgtouch | -rw-r--r-- | 1.2 KB |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 53.0 KB |
README | -rw-r--r-- | 6.6 KB |
config.guess | -rwxr-xr-x | 44.2 KB |
config.sub | -rwxr-xr-x | 34.7 KB |
configure | -rwxr-xr-x | 437.2 KB |
configure.ac | -rw-r--r-- | 137.7 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 40.1 KB |
setup.py | -rw-r--r-- | 94.3 KB |
Computing file changes ...