1
0
mirror of https://github.com/golang/go synced 2024-11-13 20:30:27 -07:00
go/src/net/mail
Minaev Mike 8598396d81 net/mail: skip trailing comment while parsing email
The existing implementation doesn't handle
comment constructions in email address.
So addresses that are consistent with RFC 5322
don't parse at all.

Fixes #21257

Change-Id: Iae3ba951dfb26b7cf0e1885a680bbceb9123d6d5
Reviewed-on: https://go-review.googlesource.com/53550
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-09-24 23:26:13 +00:00
..
example_test.go
message_test.go net/mail: skip trailing comment while parsing email 2017-09-24 23:26:13 +00:00
message.go net/mail: skip trailing comment while parsing email 2017-09-24 23:26:13 +00:00