]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024)
authorFilip Łajszczak <filip@lajszczak.dev>
Tue, 4 Nov 2025 21:22:31 +0000 (22:22 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Nov 2025 21:22:31 +0000 (16:22 -0500)
commitd76e411891fae8db2444881dd426712202317aa9
treeaa013240a205d4b13d7fc00bc74bd51bb42ef120
parent426daef4125c7157a81753349df0cd137f2b1d41
[3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024)

Update selected RFC 2822 references to RFC 5322

RFC 2822 was obsoleted by RFC 5322 in 2008. This updates references
to use the current standard in documentation, docstrings, and comments.

It preserves RFC 2822 references in legacy API components to maintain their
historical context.

RFC 822 → RFC 2822 → RFC 5322 progression is explained where relevant.

In some places specific sections of RFC are referenced where it seems helpful.

Scout rule was applied in some places and RFC mentions format was
normalized in doc strings and comments.
(cherry picked from commit ce1bb85d286130f44b7e874430b0b12990d61dc1)
15 files changed:
Doc/library/http.client.rst
Doc/library/http.server.rst
Doc/library/mailbox.rst
Doc/library/time.rst
Doc/tutorial/stdlib.rst
Lib/email/_parseaddr.py
Lib/email/_policybase.py
Lib/email/feedparser.py
Lib/email/generator.py
Lib/email/message.py
Lib/email/parser.py
Lib/http/client.py
Lib/smtplib.py
Lib/test/test_email/data/msg_35.txt
Lib/test/test_email/test_email.py