go-imap icon indicating copy to clipboard operation
go-imap copied to clipboard

backendutil: FetchEnvelope doen't decode headers too

Open cnt0 opened this issue 6 years ago • 0 comments

FetchEnvelope uses headerAddressList to parse address lists.
headerAddressList tries to use ParseAddressList from net/mail, but this function knows almost nothing about charsets. So in cases like this one

From: =?ISO-8859-15?B?TWl0c3VoYSBNaXlhbWl6dQ==?= <[email protected]>

the result is just an empty slice, and there's no way to recover the information

cnt0 avatar Jun 17 '19 14:06 cnt0