Skip to content

Conversation

@elenril
Copy link
Contributor

@elenril elenril commented Jul 29, 2025

This is a followup to 46d88a1 (#13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.

@elenril
Copy link
Contributor Author

elenril commented Aug 28, 2025

Ping, a review would be appreciated.

@elenril
Copy link
Contributor Author

elenril commented Dec 9, 2025

Ping again.

Copy link
Member

@bitdancer bitdancer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! I have a few style comments and one logic change request.

@@ -0,0 +1,2 @@
Add parsing for References/In-Reply-To email headers, preventing them from
being folded.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say "Add parsing for References and In-Reply-To headers to the :mod:email library that parses the header content as lists of message id tokens. This prevents them from being folded incorrectly."

(I'd love to add support for MessageID objects (like Address objects) an an 'ids' attribute to the headers, but that's a much bigger task and not the focus of this PR.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, and I actually considered doing that, but decided to fix the invalid behaviour first.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good choice: that will be a new feature while this will be a bug fix and backported unless someone objects.

@bedevere-app
Copy link

bedevere-app bot commented Dec 10, 2025

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@elenril elenril force-pushed the email_references branch 2 times, most recently from a1fb731 to c474293 Compare December 11, 2025 10:15
This is a followup to 46d88a1 (python#13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.
@elenril
Copy link
Contributor Author

elenril commented Dec 11, 2025

I have made the requested changes; please review again

@bedevere-app
Copy link

bedevere-app bot commented Dec 11, 2025

Thanks for making the requested changes!

@bitdancer: please review the changes made to this pull request.

@bedevere-app bedevere-app bot requested a review from bitdancer December 11, 2025 10:37
Copy link
Member

@bitdancer bitdancer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bitdancer bitdancer merged commit 79aa43a into python:main Dec 11, 2025
51 of 54 checks passed
@bitdancer bitdancer added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Dec 11, 2025
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 11, 2025
…ythonGH-137201)

This is a followup to 46d88a1 (pythonGH-13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.
(cherry picked from commit 79aa43a)

Co-authored-by: elenril <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 11, 2025
…ythonGH-137201)

This is a followup to 46d88a1 (pythonGH-13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.
(cherry picked from commit 79aa43a)

Co-authored-by: elenril <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Dec 11, 2025

GH-142573 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 Dec 11, 2025
@bedevere-app
Copy link

bedevere-app bot commented Dec 11, 2025

GH-142574 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 Dec 11, 2025
@elenril elenril deleted the email_references branch December 12, 2025 08:45
fatelei pushed a commit to fatelei/cpython that referenced this pull request Dec 12, 2025
…ython#137201)

This is a followup to 46d88a1 (python#13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants