{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/14260","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/14260/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/14260/comments","events_url":"https://api.github.com/repos/golang/go/issues/14260/events","html_url":"https://github.com/golang/go/issues/14260","id":132224895,"number":14260,"title":"net/mail: ParseAddress should support UTF-8 (RFC 6532)","user":{"login":"ConradIrwin","id":94272,"avatar_url":"https://avatars.githubusercontent.com/u/94272?v=3","gravatar_id":"","url":"https://api.github.com/users/ConradIrwin","html_url":"https://github.com/ConradIrwin","followers_url":"https://api.github.com/users/ConradIrwin/followers","following_url":"https://api.github.com/users/ConradIrwin/following{/other_user}","gists_url":"https://api.github.com/users/ConradIrwin/gists{/gist_id}","starred_url":"https://api.github.com/users/ConradIrwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConradIrwin/subscriptions","organizations_url":"https://api.github.com/users/ConradIrwin/orgs","repos_url":"https://api.github.com/users/ConradIrwin/repos","events_url":"https://api.github.com/users/ConradIrwin/events{/privacy}","received_events_url":"https://api.github.com/users/ConradIrwin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestones/Unplanned","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":1240,"closed_issues":234,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2016-02-09T02:06:41Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":4,"created_at":"2016-02-08T18:42:08Z","updated_at":"2016-02-09T02:20:56Z","closed_at":null,"body":"I'm using go v1.5.3, and parsing emails found in the wild (from senders like Linkedin and Gmail).\r\n\r\nThey expect to be able to include UTF-8 in email headers without q-encoding, but this is not currently supported by `mail.ParseAddress`.\r\n\r\nThere are two possible solutions:\r\n\r\n* We can update the parsing functions to allow only valid UTF-8 as defined by RFC 6532,\r\n* OR, we can allow arbitrary 8-byte strings, and allow the caller to decide whether it cares about the encoding of the returned string.\r\n\r\nMy experience from working on the `mail` gem for ruby would suggest that the second approach is the most pragmatic — often times email is badly formed, and it's really useful to be able to provide a \"best-effort\" parsing of badly formed email headers. However it seems like the go project tends a little bit more towards correctness, in which case the first approach may sit better in the standard library, and people who want the fuzzy behaviour can do it themselves."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/181672663","html_url":"https://github.com/golang/go/issues/14260#issuecomment-181672663","issue_url":"https://api.github.com/repos/golang/go/issues/14260","id":181672663,"user":{"login":"alexcesaro","id":832479,"avatar_url":"https://avatars.githubusercontent.com/u/832479?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcesaro","html_url":"https://github.com/alexcesaro","followers_url":"https://api.github.com/users/alexcesaro/followers","following_url":"https://api.github.com/users/alexcesaro/following{/other_user}","gists_url":"https://api.github.com/users/alexcesaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcesaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcesaro/subscriptions","organizations_url":"https://api.github.com/users/alexcesaro/orgs","repos_url":"https://api.github.com/users/alexcesaro/repos","events_url":"https://api.github.com/users/alexcesaro/events{/privacy}","received_events_url":"https://api.github.com/users/alexcesaro/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T02:20:56Z","updated_at":"2016-02-09T02:20:56Z","body":"I agree. I don't think the stdlib should handle broken input. Fixing broken emails should be the role of third-party packages."}}