]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.15] net/mail: return error on empty address list
authorIan Lance Taylor <iant@golang.org>
Fri, 14 Aug 2020 20:29:07 +0000 (13:29 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 28 Aug 2020 20:05:42 +0000 (20:05 +0000)
commit1fa328f8fbb6f4fae494b00c7c1a6fe1c288af79
tree675095d28b08e0359a57627ccb647ac2acbaaaf4
parent19c8546cd9cd53da0f4604d20f47714554fed051
[release-branch.go1.15] net/mail: return error on empty address list

This restores the handling accidentally changed in CL 217377.

Fixes #40804
For #40803
For #36959

Change-Id: If77fbc0c2a1dde4799f760affdfb8dde9bcaf458
Reviewed-on: https://go-review.googlesource.com/c/go/+/248598
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Jeremy Fishman <jfishman@cloudflare.com>
(cherry picked from commit 3e636ab9ad31040aff2d484237808907a776cec6)
Reviewed-on: https://go-review.googlesource.com/c/go/+/251167
src/net/mail/message.go
src/net/mail/message_test.go