Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rfc822: properly parse address lists
h.Text() parses blobs of encoded text without taking into account specific handling for email addresses. h.AddressList(key) uses mail.ParseAddressList(h.Get(key)) already deals with charsets and quoted-printable stuff. Pass it the raw header value. In some cases, mail.ParseAddressList will return a list of addresses *and* an UnknownCharset error. In this specific case, ignore the error. Fixes: https://todo.sr.ht/~rjarry/aerc/257 Reported-by: Inwit <[email protected]> Signed-off-by: Robin Jarry <[email protected]> Tested-by: Inwit <[email protected]> Reviewed-by: Tristan Partin <[email protected]>
- Loading branch information