]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24833)
authorSenthil Kumaran <senthil@uthcode.com>
Sat, 13 Mar 2021 00:53:13 +0000 (16:53 -0800)
committerGitHub <noreply@github.com>
Sat, 13 Mar 2021 00:53:13 +0000 (16:53 -0800)
commit8cadc2c9cacfa1710cb5ca28a70f7782cacf09aa
treed397e193ecbffee4dd672876a4bb1f44d6f2e779
parent1a5001c606b55226c03fa1046aa8f5e1db2fa67d
[3.8] bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24833)

* bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118)

* Fix auth_login logic (bpo-27820)

* Also fix a longstanding bug in the SimSMTPChannel.found_terminator() method that causes inability to test
SMTP AUTH with initial_response_ok=False.

(cherry picked from commit 7591d9455eb37525c832da3d65e1a7b3e6dbf613)

* Set timeout to 15 directly.

Co-authored-by: Pandu E POLUAN <pepoluan@gmail.com>
Lib/smtplib.py
Lib/test/test_smtplib.py
Misc/NEWS.d/next/Library/2021-03-10-14-07-44.bpo-27820.Wwdy-r.rst [new file with mode: 0644]