flanker icon indicating copy to clipboard operation
flanker copied to clipboard

Failure to parse address field encoded in iso-8859-1 (?) encoding

Open psihonavt opened this issue 10 years ago • 0 comments

Original message has next From field: From: =?iso-8859-1?Q?W=F6rz=2C_Michael?= <[email protected]> after parsing whole message with flanker.mime.from_string():

ipdb> sndr = headers['From']
ipdb> sndr
u'W\xf6rz, Michael <[email protected]>'

and

ipdb> address.parse(sndr) is None
True

Looks like something wend wrong on step of decoding value in From header?

psihonavt avatar Dec 09 '15 15:12 psihonavt