Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/textproto: fails to parse headers without a body #53854

Closed
kayrus opened this issue Jul 13, 2022 · 1 comment
Closed

net/textproto: fails to parse headers without a body #53854

kayrus opened this issue Jul 13, 2022 · 1 comment

Comments

@kayrus
Copy link

kayrus commented Jul 13, 2022

What version of Go are you using (go version)?

$ go version
go version go1.18.3 linux/amd64

Does this issue reproduce with the latest release?

Yes.

What did you do?

See example: https://go.dev/play/p/q5lkQ1V0vBa

What did you expect to see?

I expect that mail.ReadMessage will return parsed headers with an empty body.

What did you see instead?

No body, no headers, just error:

2009/11/10 23:00:00 EOF

Program exited.

I'm not sure if this behavior aligns with RFC, but I receive emails with zero body from postfix, which should align with RFC.

@seankhliao
Copy link
Member

Duplicate of #33823

@seankhliao seankhliao marked this as a duplicate of #33823 Jul 13, 2022
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2022
@golang golang locked and limited conversation to collaborators Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants