]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-70039: smtplib: store the server name in ._host in .connect() (GH-115259...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 8 Apr 2026 22:14:15 +0000 (00:14 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2026 22:14:15 +0000 (18:14 -0400)
commitf46a17b19ff535591b75f5f3df5b48f7b4f939b4
tree80c8069e7ee2a99e09f5749919b3b1d7510ff052
parenta84e2dba24286d9cf13c29807d6994a13dc102a1
[3.14] gh-70039: smtplib: store the server name in ._host in .connect() (GH-115259) (#148273)

Original patch by gigaplastik, extended with a few more tests.

Addresses gh-70039 and bpo-25852: failure of starttls if connect is called explicitly.
(cherry picked from commit 442f83a5ea1b4d334befd231a79c40d6ff41a0bd)

Co-authored-by: nmartensen <nis.martensen@web.de>
Lib/smtplib.py
Lib/test/test_smtpnet.py
Misc/NEWS.d/next/Library/2024-02-10-21-25-22.gh-issue-70039.6wvcAP.rst [new file with mode: 0644]