net/textproto: missing/incorrect arg in error string. #43408
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go version go1.15.6 linux/amd64
Does this issue reproduce with the latest release?
yes, when I ingest/read an SMTP delivered message with net/mail (as a NewMessage())
What operating system and processor architecture are you using (
go env
)?$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/morrowc/.cache/go-build"
GOENV="/home/morrowc/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/morrowc/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/morrowc/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib//pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmes
What did you do?
Read an email message from a named-pipe (file would also work), parse into a NewMessage():
What did you expect to see?
'not an error' ...
What did you see instead?
example message is available at:
http://docs.as701.net/tmp/golang_issue_example_msg.txt
The process to jam patches in here is .. more than I want to do on vacation, but:
that would almost certainly fix the error's missing / wrong type of arg.
The text was updated successfully, but these errors were encountered: