Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
net/mail: ParseAddress should support UTF-8 (RFC 6532) #14260
I'm using go v1.5.3, and parsing emails found in the wild (from senders like Linkedin and Gmail).
They expect to be able to include UTF-8 in email headers without q-encoding, but this is not currently supported by
There are two possible solutions:
My experience from working on the
RFC 6532 is really an extension of RFC 5322, which we claim to support, so it seems fine to permit the extensions that RFC 6532 defines. I'm not keen on net/mail going out of its way to parse broken mail messages; it just makes it harder to use for the non-broken cases.