| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The auth method tests simply weren't adequate because of the fact that
smtpd doesn't support authentication. I borrowed some of Milan's
code for that from issue #21935 and added it to the smtplib tests.
Also discovered that the direct test for the 'auth' method wasn't actually
testing anything and fixed it.
The fix makes the new authobject mechanism work the way it is
documented...the problem was that wasn't checking for a 334 return code
if an initial-response was provided, which works fine for auth plain
and cram-md5, but not for auth login.
|
| |
|
|
|
|
| |
initial-response argument to the SMTP AUTH command.
|
|
|
|
| |
Reviewed by Maciej Szulik.
|
|
|
|
| |
Initial patch by Milan Oberkirch.
|
|
|
|
|
|
| |
There are doubtless other debug messages in smtplib that would trigger an
error if they were tested, but this fixes the things we do now test,
which is good enough for now.
|
|
|
|
| |
Patch by Gavin Chappell and Maciej Szulik.
|
|\
| |
| |
| |
| | |
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
|
| |
| |
| |
| |
| | |
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Patch by Donald Stufft.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Without this reset, starttls would fail if a connect/starttls was done after a
quit, because smtplib assumed the existing value of emspt_features was
accurate, but it gets reset when starttls completes (and the new value does
not contain the starttls capability, since tls is already started at that
point). (There may be additional places where this lack of reset was an
issue as well.)
Patch by Milan Oberkirch.
|
|/
|
|
| |
Patch by Milan Oberkirch.
|
|
|
|
|
|
| |
Fixes the ResourceWarning in the test run.
Patch by Claudiu.Popa.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang lines in the unittestgui and checkpip scripts.
|
| |
| |
| |
| |
| |
| |
| | |
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
|
| |
| |
| |
| | |
indication for TLS/SSL connections.
|
| |
| |
| |
| |
| | |
create SSLContext objects in Python's stdlib module. It provides a single
configuration point and makes use of SSLContext.load_default_certs().
|
| |
| |
| |
| | |
module supports digestmod names, e.g. hmac.HMAC('sha1').
|
| | |
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| | |
Original patch by Berker Peksag.
|
| |
| |
| |
| | |
Original patch by Berker Peksag.
|
| |
| |
| |
| | |
ModuleNotFoundError.
|
| | |
|
| |
| |
| |
| | |
Initial patch by Ned Jackson Lovely.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.
Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.
Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.
Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
|
|\ \ \
| |/ /
| | |
| | | |
Initial patch by Serhiy Storchaka.
|
| |\ \
|/ / /
| | _
| | |
Patch by Serhiy Storchaka.
|
| |
| |
| |
| | |
Patch by Serhiy Storchaka.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
in order to display the prompt correctly. Patch by Petri Lehtinen.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
test_smtplib.py. Review comments by Ezio Melotti for smtplib.rst
|
| |
| |
| |
| | |
adds the ability to bind to specific source address on a machine with multiple interfaces. Patch by Paulo Scardine.
|
| |
| |
| |
| |
| |
| | |
As far as I can tell, the try/except was ancient code, from before the email
package rewrite where the philosophy of never throwing parsing errors was
adopted.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
The changeset also adds additional indirect tests for quoteaddr (null address
and IDNA-encoded address).
|
|\ \
| |/ |
|