]> Cypherpunks repositories - gostls13.git/commit
net/mail: parse group in email address
authorMihail Minaev <minaev.mike@gmail.com>
Tue, 26 Sep 2017 11:47:49 +0000 (11:47 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 27 Sep 2017 13:55:10 +0000 (13:55 +0000)
commit6f2e5f9c3720540ae5804b37222f6e82313ce13f
tree7b9af304855b6872427b83f4e17a07179b24b094
parent90fdc45585bc18386d5a2d90a062bf86863e917d
net/mail: parse group in email address

This change adds the ability to parse
group into email address. The information about
group name and group members is lost for
backwards compatibility. According to this rule address
`Group: Test <text@example.com>;` would be parsed into
`Test <test@example.com>`.

Fixes #22014

Change-Id: I6e804a62f3ede04f555a1b82500b8ca030eeb431
Reviewed-on: https://go-review.googlesource.com/66250
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