]> Cypherpunks repositories - gostls13.git/commit
net/mail: permit more characters in mail headers
authorIan Lance Taylor <iant@golang.org>
Mon, 19 Jun 2023 22:35:50 +0000 (15:35 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 21 Jun 2023 21:39:08 +0000 (21:39 +0000)
commit78c3aba4704c86874c36e61224966e7e07706bc0
tree2dc73eca2fe65ab077017fd3e6efc6c5d6fd8c20
parent633b742ae084df018c802c97bdbe91cf5f598605
net/mail: permit more characters in mail headers

We parse mail messages using net/textproto. For #53188, we tightened
up the bytes permitted by net/textproto to match RFC 7230.
However, this package uses RFC 5322 which is more permissive.
Restore the permisiveness we used to have, so that older code
continues to work.

Fixes #58862
Fixes #60332

Change-Id: I5437f5e18a756f6ca61c13c4d8ba727be73eff9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/504416
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/net/mail/message.go
src/net/mail/message_test.go