Skip to content

Conversation

@filiplajszczak
Copy link
Contributor

@filiplajszczak filiplajszczak commented Sep 29, 2025

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.


📚 Documentation preview 📚: https://cpython-previews--139435.org.readthedocs.build/

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.
@bitdancer bitdancer merged commit ce1bb85 into python:main Nov 4, 2025
46 checks passed
@bitdancer bitdancer added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Nov 4, 2025
@miss-islington-app
Copy link

Thanks @filiplajszczak for the PR, and @bitdancer for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @filiplajszczak for the PR, and @bitdancer for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @filiplajszczak and @bitdancer, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker ce1bb85d286130f44b7e874430b0b12990d61dc1 3.13

@miss-islington-app
Copy link

Sorry, @filiplajszczak and @bitdancer, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker ce1bb85d286130f44b7e874430b0b12990d61dc1 3.14

@bitdancer
Copy link
Member

Hmm. Not sure if it is worth doing the backport since the cherry pick isn't clean. Do you want to tackle that? If not I'll just remove the backport labels and close the backport PRs, which is my inclination.

@filiplajszczak
Copy link
Contributor Author

filiplajszczak commented Nov 4, 2025

@bitdancer conflict resolution was straight forward. I've already done it. See https://github.com/filiplajszczak/cpython/tree/backport-ce1bb85-3.13 and https://github.com/filiplajszczak/cpython/tree/backport-ce1bb85-3.14 Should I create separate PRs? I do not have any experience with backports.

filiplajszczak added a commit to filiplajszczak/cpython that referenced this pull request Nov 4, 2025
…22 (pythonGH-139435)

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 ce1bb85)

Co-authored-by: Filip Łajszczak <[email protected]>
@bitdancer
Copy link
Member

There's cherry_picker script and process described in the devguide. It basically does what the bot does, except you get to fix the conflicts in the middle.

@bedevere-app
Copy link

bedevere-app bot commented Nov 4, 2025

GH-141024 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 4, 2025
@bedevere-app
Copy link

bedevere-app bot commented Nov 4, 2025

GH-141025 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Nov 4, 2025
@filiplajszczak
Copy link
Contributor Author

@bitdancer I see what happened. Script got confused by my remote naming, but it looks like it did important part correctly by setting correctly named branches and commit messages, so I just had to trigger the PRs. I'm not sure, though.

@bitdancer
Copy link
Member

I think manually triggering the PR creation is a required step, but I've only done it once so far myself ;)

bitdancer pushed a commit that referenced this pull request Nov 4, 2025
…-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 ce1bb85)
bitdancer pushed a commit that referenced this pull request Nov 4, 2025
…-139435) (#141025)

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 ce1bb85)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants