FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-1025395: Fix email.utils.parseaddr to handle multiple hops by ioanatia · Pull Request #6917 · python/cpython · GitHub

Repository navigation

bpo-1025395: Fix email.utils.parseaddr to handle multiple hops - #6917

Closed
ioanatia wants to merge 1 commit into
python:masterfrom
ioanatia:ioanatia-fix-email-utils-parseaddr
Closed

ioanatia wants to merge 1 commit into
python:masterfrom
ioanatia:ioanatia-fix-email-utils-parseaddr

Conversation

ioanatia commented May 16, 2018 •
edited
Loading

Copy link
Copy Markdown

This fixes a very old issue with email.utils.parseaddr.
Right now email.utils.parseaddr will fail to parse the input correctly when the address contains a route with multiple hops. However it does not have an issue with single hop routes.

RFC5322 states that including route hops is obsolete and that the route part should be ignored (Section 4.4). It also states that this syntax is valid and it must be accepted and parsed (Section 4).

https://bugs.python.org/issue1025395

This is a duplicate of #142 , the Travis build failing because of changes unrelated to the PR. I have rebased my old branch on latest master, but that still does not seem to help. 🤔 🐱 . @Mariatta

Copy link
Copy Markdown
Member

@bitdancer any chance of a review of this?

Mariatta requested a review from warsaw July 18, 2018 23:28

Copy link
Copy Markdown
Member

@warsaw or @bitdancer Will one of you be able to review this please? Thanks.

ioanatia closed this May 29, 2019

maxking left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks @ioanatia for this fix, not sure why you closed this PR though :)

The patch looks good to me and seems to fix the bug, I have suggested a slight modification to the NEWS entry.

@@ -0,0 +1 @@
Fix email.utils.parseaddr to handle multiple hops

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'd suggest a slight change to wrap email.utils.parseaddr in double backticks "``" so that it is rendered correctly with code in rst format.

Also, can you can add a full stop at the end of the sentence.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

6 participants


Back | FazBrowse Home | New Git URL