[issue37139] Inconsistent behavior of email.header.decode_header

2019-06-03 Thread SilentGhost
SilentGhost added the comment: There seems to be some work started in #32975. Perhaps, you'd like to revive it or contribute otherwise? -- ___ Python tracker ___

[issue37139] Inconsistent behavior of email.header.decode_header

2019-06-03 Thread Louis Abraham
Louis Abraham added the comment: Indeed, this is exactly the same (I should have researched more, my bad). The problem is that I'm using mailbox.Maildir which uses the Compat32 API. Do you think I should create an issue for Maildir to support the new EmailMessage API? -- __

[issue37139] Inconsistent behavior of email.header.decode_header

2019-06-03 Thread SilentGhost
SilentGhost added the comment: This seem like a duplicate of #24797. I hope the answer given there applies. -- components: +email nosy: +SilentGhost, barry, r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> email.header.decode_header re

[issue37139] Inconsistent behavior of email.header.decode_header

2019-06-03 Thread Louis Abraham
New submission from Louis Abraham : Hi, (this is my first issue btw) I think has a broken behavior. It returns a list of `(decoded_string, charset)` pairs. However, `decoded_string` can be either a string or b