go-imap
go-imap copied to clipboard
backendutil: FetchEnvelope doen't decode headers too
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