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
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Could do, but not relevant
What did you do?
Parsing emails from Apple Mail with net/mail.ReadMessage fails with EOF. Indeed some emails (typically: Calendar invites) have no body. This might violate the spec, but still is common.
What did you expect to see?
As described in #15632, ReadMessage should accept a missing body.
What did you see instead?
Returns error EOF.
The text was updated successfully, but these errors were encountered:
hbbio
changed the title
Duplicate of #15632
ReadMessage fails with messages that have an empty body (#15632)
Mar 5, 2018
bradfitz
changed the title
ReadMessage fails with messages that have an empty body (#15632)
net/mail: ReadMessage fails with messages that have an empty body
Mar 5, 2018
Here is a sample message, this being the full message (some parts redacted). As I said, this is a calendar invitation sent from Exchange which contains strictly no body.
What version of Go are you using (
go version
)?1.10
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Could do, but not relevant
What did you do?
Parsing emails from Apple Mail with net/mail.ReadMessage fails with EOF. Indeed some emails (typically: Calendar invites) have no body. This might violate the spec, but still is common.
What did you expect to see?
As described in #15632, ReadMessage should accept a missing body.
What did you see instead?
Returns error EOF.
The text was updated successfully, but these errors were encountered: