You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Go are you using (go version)?
go 1.6
What operating system and processor architecture are you using (go env)?
Ubuntu 16.04 amd64
What did you do?
package main
import "fmt"
import "net/mail"
func main() {
a, err := mail.ParseAddress("a@gmail.com b@gmail.com")
fmt.Printf("%#v %v\n", a, err)
}
What did you expect to see?
An error thrown
What did you see instead?
An Address is returned for a@gmail.com and no error is thrown. It seems like the internal address parser should check for trailing garbage after an address and fail on that case (since we aren't calling ParseAddressList).
The text was updated successfully, but these errors were encountered:
go version
)?go 1.6
go env
)?Ubuntu 16.04 amd64
An error thrown
An
Address
is returned fora@gmail.com
and no error is thrown. It seems like the internal address parser should check for trailing garbage after an address and fail on that case (since we aren't callingParseAddressList
).The text was updated successfully, but these errors were encountered: