]> Cypherpunks repositories - gostls13.git/commit
net/mail: correctly handle whitespaces when formatting an email address
authorJakub Ryszard Czarnowicz <j.czarnowicz@gmail.com>
Thu, 6 Feb 2014 23:49:10 +0000 (10:49 +1100)
committerDavid Symonds <dsymonds@golang.org>
Thu, 6 Feb 2014 23:49:10 +0000 (10:49 +1100)
commitd3b9567a15cd0f20a927c87b8172902717020304
treef9aa9d958a9c78e8bdfd2ff2d15288b68647083c
parentc66956cdb1f3e0c0e692f7d7ea6034b41c85af47
net/mail: correctly handle whitespaces when formatting an email address

Whitespace characters are allowed in quoted-string according to RFC 5322 without
being "Q"-encoding. Address.String() already always formats the name portion in
quoted string, so whitespace characters should be allowed in there.

Fixes #6641.

LGTM=dave, dsymonds
R=golang-codereviews, gobot, dsymonds, dave
CC=golang-codereviews
https://golang.org/cl/55770043
src/pkg/net/mail/message.go
src/pkg/net/mail/message_test.go