]> Cypherpunks repositories - gostls13.git/commit
net/mail: allow utf-8 in ParseAddress
authorConrad Irwin <conrad.irwin@gmail.com>
Fri, 19 Feb 2016 18:12:44 +0000 (10:12 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 15 Apr 2016 13:57:26 +0000 (13:57 +0000)
commit7f52b43954d75aa0c444d57b9d0eb7ff36eb3dd0
tree0a1b2b143508ce05b1df87058544672294f32675
parent89a1f02834f1472cf307b222e14884ebd41086d3
net/mail: allow utf-8 in ParseAddress

The existing implementation correctly supported RFC 5322, this
change adds support for UTF-8 while parsing as specified by
RFC 6532. The serialization code is unchanged, so emails created
by go remain compatible with very legacy systems.

Fixes #14260

Change-Id: Ib57e510f5834d273605e1892679f2df19ea931b1
Reviewed-on: https://go-review.googlesource.com/19687
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alexandre Cesaro <alexandre.cesaro@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/mail/message.go
src/net/mail/message_test.go