[issue37482] Email address display name fails with both encoded words and special chars

2019-08-28 Thread B Siemerink
B Siemerink added the comment: Thank you all! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-28 Thread Ned Deily
Ned Deily added the comment: I manually merged the stalled 3.8 backport to make 3.8.0b4. Can this issue now be closed? -- ___ Python tracker ___

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-28 Thread Ned Deily
Ned Deily added the comment: New changeset bd127b1b7dd50c76c4419d9c87c12901527d19da by Ned Deily (bsiem) in branch '3.8': [3.8] bpo-37482: Fix email address name with encoded words and special chars (GH-14561) (GH-15380) https://github.com/python/cpython/commit/bd127b1b7dd50c76c4419d9c87c129

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-21 Thread B Siemerink
Change by B Siemerink : -- pull_requests: +15090 pull_request: https://github.com/python/cpython/pull/15380 ___ Python tracker ___ _

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-21 Thread miss-islington
miss-islington added the comment: New changeset c5bba853d5e7836f6d4340e18721d3fb3a6ee0f7 by Miss Islington (bot) in branch '3.7': bpo-37482: Fix email address name with encoded words and special chars (GH-14561) https://github.com/python/cpython/commit/c5bba853d5e7836f6d4340e18721d3fb3a6ee0f

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +15083 pull_request: https://github.com/python/cpython/pull/15371 ___ Python tracker ___ __

[issue37482] Email address display name fails with both encoded words and special chars

2019-08-21 Thread miss-islington
miss-islington added the comment: New changeset df0c21ff46c5c37b6913828ef8c7651f523432f8 by Miss Islington (bot) (bsiem) in branch 'master': bpo-37482: Fix email address name with encoded words and special chars (GH-14561) https://github.com/python/cpython/commit/df0c21ff46c5c37b6913828ef8c7

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-14 Thread B Siemerink
B Siemerink added the comment: Yes, you are right! The fix is to encode the special characters. -- ___ Python tracker ___ ___ Pytho

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-10 Thread R. David Murray
R. David Murray added the comment: The display name is a phrase, and a phrase is a sequence of words, and a word is either a quoted string or an atom. So it is legal to mix quoted strings and encoded words in a display name. I'd vote to do whichever one is easier to implement :) (I haven'

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-10 Thread B Siemerink
B Siemerink added the comment: Hello David, thank you for the suggestion. Regarding your comment: > Either the comma should be encoded, or the "Foo Bar," should be in quotes. According to RFC5322 the display name cannot contain both a quoted part and an encoded word, so the only option is to

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-10 Thread R. David Murray
R. David Murray added the comment: FYI, it would have been most helpful if you had posted your example in the issue text instead of as an attached file, as it explains the problem better than your text does :) Here is a minimal reproducer: >>> m = EmailMessage(policy=strict) >>> m['From'] =

[issue37482] Email address display name fails with both encoded words and special chars

2019-07-02 Thread B Siemerink
Change by B Siemerink : -- title: Email header fails with both encoded words and special chars -> Email address display name fails with both encoded words and special chars ___ Python tracker ___