This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cnicodeme
Recipients barry, cnicodeme, r.david.murray
Date 2018-07-19.14:53:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

I'm trying to parse some emails, and I discovered that email.utils.parseaddr wrongly parse an email.

Here's the corresponding header:

> From: =?utf-8?Q?

Once this has been parsed via `decode_header`, we obtain this value:

> From:ゆ↑ゆゃゅぇぺぽぼ"\どづぢlだばとくKLいれるゆ>KLらJF <>

(I agree, not really a nice looking From email ...)

Then, when this value is given to parseaddr, here's the result:

> ('', 'ゆ↑ゆゃゅぇぺぽぼ')

But it should be:

> ('ゆ↑ゆゃゅぇぺぽぼ"\どづぢlだばとくKLいれるゆ>KLらJF', '')

(Note that the email in the "name" part is not the same as the email in the "email" part!)
Date User Action Args
2018-07-19 14:53:43cnicodemesetrecipients: + cnicodeme, barry, r.david.murray
2018-07-19 14:53:43cnicodemesetmessageid: <>
2018-07-19 14:53:43cnicodemelinkissue34155 messages
2018-07-19 14:53:43cnicodemecreate