aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_linux_amd64.s
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@google.com>2017-11-14 04:46:03 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2017-11-14 22:07:08 +0000
commitfcee1897767c0cfa6e13a843fe5ee5d1deb8081b (patch)
treeee58caad48c0ca197a30f13851656afd517d4386 /src/runtime/sys_linux_amd64.s
parent01c979dabef2c8edb3fffd99e1f89781b4d2c159 (diff)
downloadgo-fcee1897767c0cfa6e13a843fe5ee5d1deb8081b.tar.xz
net/mail: treat comment in address as display name
I verified this change on a corpus of > 200 GB of emails since the mid-90s. With this change, more addresses parse than before, and anything which parsed before still parses. In said corpus, I came across the edge case of comments preceding an addr-spec (with angle brackets!), e.g. “(John Doe) <john@example.com>”, which does not satisfy the conditions to be treated as a fallback, as per my reading of RFC2822. This change does not parse quoted-strings within comments (a corresponding TODO is in the code), but I have not seen that in the wild. Fixes #22670 Change-Id: I526fcf7c6390aa1c219fdec1852f26c514506f76 Reviewed-on: https://go-review.googlesource.com/77474 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/sys_linux_amd64.s')
0 files changed, 0 insertions, 0 deletions