]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:15:16 +0000 (00:15 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2026 22:15:16 +0000 (18:15 -0400)
commit461ae64628185f3df1773b9c8ba5d007b955ee67
tree0e0e6af7aaf45f5069ef9d2793f78fa56f9065a8
parent4002c3a4615f2d41cf081595cb0d4e3774957ad6
[3.13] gh-70039: smtplib: store the server name in ._host in .connect() (GH-115259) (#148272)

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]