]> Cypherpunks repositories - gostls13.git/commit
net/mail: skip trailing comment while parsing email
authorMinaev Mike <minaev.mike@gmail.com>
Mon, 7 Aug 2017 08:22:21 +0000 (08:22 +0000)
committerIan Lance Taylor <iant@golang.org>
Sun, 24 Sep 2017 23:26:13 +0000 (23:26 +0000)
commit8598396d81035ed170581bfec894f6827b5db506
tree496f3e6d33146fb8873a11567061ebcc3d94faf9
parentff3123d1f66992f51d326c844d8ecf1f5ab8e75d
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>
src/net/mail/message.go
src/net/mail/message_test.go