]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-65495: Use lowercase `mail from` and `rcpt to` in `smtplib.SMTP` (#107019)
authorMatthieu Caneill <matthieucan@users.noreply.github.com>
Sat, 22 Jul 2023 14:46:59 +0000 (16:46 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Jul 2023 14:46:59 +0000 (16:46 +0200)
commit3782def5a2b4d24ab5d356f89da181e99a9a59b2
tree83c72fc5226091985ae4f1a7cd261029f1284159
parentd228825e08883fc13f35eb91435f95d32524931c
gh-65495: Use lowercase `mail from` and `rcpt to` in `smtplib.SMTP` (#107019)

Use lowercase `mail from` and `rcpt to` in `smtplib.SMTP`

SMTP commands are case-insensitive. `smtplib` uses lowercase commands,
however it writes `mail FROM` and `rcpt TO`, lacking consistency.
Lib/smtplib.py
Lib/test/test_smtplib.py
Misc/NEWS.d/next/Library/2023-07-22-14-29-34.gh-issue-65495.fw84qM.rst [new file with mode: 0644]