-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-79986: Add parsing for References/In-Reply-To email headers #137201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Ping, a review would be appreciated. |
|
Ping again. |
bitdancer
left a comment
There was a problem hiding this 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. | |||
There was a problem hiding this comment.
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.)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
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 |
a1fb731 to
c474293
Compare
This is a followup to 46d88a1 (python#13397), which added parsing for Message-ID. Similar handling is needed for the other two identification headers.
c474293 to
8abd6fc
Compare
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @bitdancer: please review the changes made to this pull request. |
bitdancer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks @elenril for the PR, and @bitdancer for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @elenril for the PR, and @bitdancer for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…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]>
…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]>
|
GH-142573 is a backport of this pull request to the 3.14 branch. |
|
GH-142574 is a backport of this pull request to the 3.13 branch. |
…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.
This is a followup to 46d88a1 (#13397),
which added parsing for Message-ID. Similar handling is needed for the
other two identification headers.