1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:54:44 -07:00
go/src/net
Conrad Irwin 7f52b43954 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>
2016-04-15 13:57:26 +00:00
..
http all: use new io.SeekFoo constants instead of os.SEEK_FOO 2016-04-13 05:25:23 +00:00
internal/socktest net/internal/socktest: add missing support for AcceptEx 2016-02-21 03:09:25 +00:00
mail net/mail: allow utf-8 in ParseAddress 2016-04-15 13:57:26 +00:00
rpc net/rpc: don't assume b.N > 0 2016-03-18 15:54:55 +00:00
smtp all: single space after period. 2016-03-02 00:13:47 +00:00
testdata net: mirror Tom Sawyer in the net package for tests 2016-04-12 22:22:36 +00:00
textproto all: single space after period. 2016-03-02 00:13:47 +00:00
url net/url: don't assume b.N > 0 2016-03-18 15:54:59 +00:00
addrselect_test.go
addrselect.go all: single space after period. 2016-03-02 00:13:47 +00:00
cgo_android.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_bsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_linux.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_netbsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_openbsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_resnew.go
cgo_resold.go
cgo_socknew.go
cgo_sockold.go
cgo_solaris.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_stub.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_unix_test.go
cgo_unix.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
cgo_windows.go
conf_netcgo.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
conf_test.go all: delete dead test code 2016-03-21 07:10:08 +00:00
conf.go all: single space after period. 2016-03-02 00:13:47 +00:00
conn_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
dial_gen.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
dial_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
dial.go net: filter destination addresses when source address is specified 2016-03-16 03:17:56 +00:00
dnsclient_test.go
dnsclient_unix_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
dnsclient_unix.go net: don't do DNS for onion and local addresses 2016-04-02 20:32:36 +00:00
dnsclient.go all: single space after period. 2016-03-02 00:13:47 +00:00
dnsconfig_unix_test.go net: fix race in (*resolverConfig).tryUpdate 2016-02-20 10:03:47 +00:00
dnsconfig_unix.go all: single space after period. 2016-03-02 00:13:47 +00:00
dnsmsg_test.go net: fix vet warnings 2016-03-02 16:26:36 +00:00
dnsmsg.go all: single space after period. 2016-03-02 00:13:47 +00:00
dnsname_test.go all: standardize RFC mention format 2016-04-12 21:07:52 +00:00
error_plan9_test.go net: add missing aborted connection handling on accept test 2016-02-21 03:32:36 +00:00
error_posix_test.go net: add missing aborted connection handling on accept test 2016-02-21 03:32:36 +00:00
error_test.go net: fix TestDialAddrError 2016-04-14 07:40:42 +00:00
error_unix_test.go net: prevent spurious TCP connection setup notification on darwin 2016-03-16 03:09:28 +00:00
error_windows_test.go net: add missing aborted connection handling on accept test 2016-02-21 03:32:36 +00:00
example_test.go
external_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
fd_mutex_test.go net: make unexposed methods start with lowercase letters 2016-03-17 21:43:41 +00:00
fd_mutex.go net: factor out fdMutex-related methods on netFD 2016-04-04 22:31:06 +00:00
fd_plan9.go net: factor out fdMutex-related methods on netFD 2016-04-04 22:31:06 +00:00
fd_poll_nacl.go net: make unexposed methods start with lowercase letters 2016-03-17 21:43:41 +00:00
fd_poll_runtime.go net: make unexposed methods start with lowercase letters 2016-03-17 21:43:41 +00:00
fd_posix_test.go
fd_posix.go
fd_unix.go net: wait for cancelation goroutine before returning from connect. 2016-04-05 05:12:22 +00:00
fd_windows.go net: wait for cancelation goroutine before returning from connect. 2016-04-05 05:12:22 +00:00
file_plan9.go
file_stub.go
file_test.go
file_unix.go
file_windows.go
file.go
hook_cloexec.go
hook_plan9.go
hook_unix.go
hook_windows.go net: add missing aborted connection handling on accept test 2016-02-21 03:32:36 +00:00
hook.go
hosts_test.go net: ensure lookupStatic* returns copy of slice to disallow cache corruption. 2016-02-21 16:36:56 +00:00
hosts.go net: ensure lookupStatic* returns copy of slice to disallow cache corruption. 2016-02-21 16:36:56 +00:00
interface_bsd_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_bsd.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
interface_darwin.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_dragonfly.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_freebsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_linux_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_linux.go all: single space after period. 2016-03-02 00:13:47 +00:00
interface_netbsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_openbsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_stub.go all: single space after period. 2016-03-02 00:13:47 +00:00
interface_test.go net: relax TestInterfaces and TestInterfaceAddrs for BSD variants 2016-04-15 01:38:13 +00:00
interface_unix_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
interface_windows_test.go
interface_windows.go all: single space after period. 2016-03-02 00:13:47 +00:00
interface.go net: cache IPv6 zone information for applications using IPv6 link-local address 2016-04-15 01:45:27 +00:00
ip_test.go net: make IP.{String,MarshalText} return helpful information on address error 2016-04-12 00:41:17 +00:00
ip.go net: make IP.{String,MarshalText} return helpful information on address error 2016-04-12 00:41:17 +00:00
iprawsock_plan9.go net: deduplicate raw IP socket code 2016-03-16 03:08:13 +00:00
iprawsock_posix.go net: deduplicate raw IP socket code 2016-03-16 03:08:13 +00:00
iprawsock_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
iprawsock.go net: deduplicate raw IP socket code 2016-03-16 03:08:13 +00:00
ipsock_plan9.go net: deduplicate TCP socket code 2016-03-03 04:23:59 +00:00
ipsock_posix.go net: make IP.{String,MarshalText} return helpful information on address error 2016-04-12 00:41:17 +00:00
ipsock_test.go
ipsock.go net: cache IPv6 zone information for applications using IPv6 link-local address 2016-04-15 01:45:27 +00:00
listen_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
lookup_plan9.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
lookup_stub.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
lookup_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
lookup_unix.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
lookup_windows_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
lookup_windows.go
lookup.go all: single space after period. 2016-03-02 00:13:47 +00:00
mac_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
mac.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
main_cloexec_test.go
main_conf_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
main_noconf_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
main_plan9_test.go
main_posix_test.go
main_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
main_unix_test.go
main_windows_test.go net: add missing aborted connection handling on accept test 2016-02-21 03:32:36 +00:00
mockserver_test.go net: make newLocalPacketListener handle network argument correcly 2016-04-14 04:20:00 +00:00
net_test.go net: add missing aborted connection handling on accept test 2016-02-21 03:32:36 +00:00
net_windows_test.go net: skip TestInterfacesWithNetsh if "netsh help" contains no English words 2016-03-30 01:51:23 +00:00
net.go net: filter destination addresses when source address is specified 2016-03-16 03:17:56 +00:00
netgo_unix_test.go
nss_test.go
nss.go
packetconn_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
parse_test.go
parse.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
pipe_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
pipe.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
platform_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
port_unix.go
protoconn_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sendfile_dragonfly.go all: use new io.SeekFoo constants instead of os.SEEK_FOO 2016-04-13 05:25:23 +00:00
sendfile_freebsd.go all: use new io.SeekFoo constants instead of os.SEEK_FOO 2016-04-13 05:25:23 +00:00
sendfile_linux.go net: make unexposed methods start with lowercase letters 2016-03-17 21:43:41 +00:00
sendfile_solaris.go all: use new io.SeekFoo constants instead of os.SEEK_FOO 2016-04-13 05:25:23 +00:00
sendfile_stub.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sendfile_test.go net: mirror Tom Sawyer in the net package for tests 2016-04-12 22:22:36 +00:00
sendfile_windows.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
server_test.go
sock_bsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sock_cloexec.go
sock_linux.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sock_plan9.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sock_posix.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sock_stub.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sock_windows.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sockopt_bsd.go all: single space after period. 2016-03-02 00:13:47 +00:00
sockopt_linux.go all: single space after period. 2016-03-02 00:13:47 +00:00
sockopt_plan9.go net: deduplicate TCP socket code 2016-03-03 04:23:59 +00:00
sockopt_posix.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sockopt_solaris.go all: single space after period. 2016-03-02 00:13:47 +00:00
sockopt_stub.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sockopt_windows.go all: single space after period. 2016-03-02 00:13:47 +00:00
sockoptip_bsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sockoptip_linux.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sockoptip_posix.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sockoptip_stub.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sockoptip_windows.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sys_cloexec.go
tcpsock_plan9.go net: deduplicate TCP socket code 2016-03-03 04:23:59 +00:00
tcpsock_posix.go net: deduplicate TCP socket code 2016-03-03 04:23:59 +00:00
tcpsock_test.go net: make use of internal/testenv package 2016-04-14 06:13:45 +00:00
tcpsock_unix_test.go net: prevent spurious TCP connection setup notification on darwin 2016-03-16 03:09:28 +00:00
tcpsock.go net: deduplicate TCP socket code 2016-03-03 04:23:59 +00:00
tcpsockopt_darwin.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tcpsockopt_dragonfly.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tcpsockopt_openbsd.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tcpsockopt_plan9.go net: deduplicate TCP socket code 2016-03-03 04:23:59 +00:00
tcpsockopt_posix.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tcpsockopt_solaris.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tcpsockopt_stub.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tcpsockopt_unix.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
tcpsockopt_windows.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
timeout_test.go net: make two tests not parallel 2016-04-12 21:07:58 +00:00
udpsock_plan9.go net: deduplicate UDP socket code 2016-03-16 03:07:52 +00:00
udpsock_posix.go net: deduplicate UDP socket code 2016-03-16 03:07:52 +00:00
udpsock_test.go net: cache IPv6 zone information for applications using IPv6 link-local address 2016-04-15 01:45:27 +00:00
udpsock.go net: deduplicate UDP socket code 2016-03-16 03:07:52 +00:00
unixsock_plan9.go net: deduplicate Unix socket code 2016-03-16 03:08:31 +00:00
unixsock_posix.go net: deduplicate Unix socket code 2016-03-16 03:08:31 +00:00
unixsock_test.go net, runtime: skip flaky tests on OpenBSD 2016-04-06 19:28:24 +00:00
unixsock.go net: deduplicate Unix socket code 2016-03-16 03:08:31 +00:00