net/mail: AddressList

47 views
Skip to first unread message

sta...@gmail.com

unread,
Dec 14, 2017, 10:20:22 AM12/14/17
to golang-nuts
AddressList doesn't seem to like it when the email name is encoded in RFC 2047 and enclosed in quotes.

e.g. "=?UTF-8?Q?Charles=20Schwab=20=26=20Co=2E=2C=20Inc=2E?=" <te...@example.com>

Any plan to fix it?

David Lyons

unread,
Dec 15, 2017, 2:54:55 PM12/15/17
to golang-nuts
Not sure it is broken, are you using the correct quotes?  Building from the example on ParseAddressList, which uses the same underlying mechanics as addresslist (https://golang.org/pkg/net/mail/#example_ParseAddressList):


It appears to parse your email addy just fine.

D
Reply all
Reply to author
Forward
0 new messages