mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net/mail: allow us-ascii encoding
Fixes #6611. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/14990045
This commit is contained in:
parent
a325f4f2b3
commit
06e4b06893
2 changed files with 22 additions and 1 deletions
|
|
@ -194,6 +194,16 @@ func TestAddressParsing(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
// RFC 2047 "Q"-encoded US-ASCII address. Dumb but legal.
|
||||
{
|
||||
`=?us-ascii?q?J=6Frg_Doe?= <joerg@example.com>`,
|
||||
[]*Address{
|
||||
{
|
||||
Name: `Jorg Doe`,
|
||||
Address: "joerg@example.com",
|
||||
},
|
||||
},
|
||||
},
|
||||
// RFC 2047 "Q"-encoded UTF-8 address.
|
||||
{
|
||||
`=?utf-8?q?J=C3=B6rg_Doe?= <joerg@example.com>`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue