Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/mail: ReadMessage fails on header-only messages (round 3) #33823
Sorry to open this again (see #15632, #24256).
The message has no body and only one LF at the end. The
Postfix can send header-only messages, and it preserves the absence of the empty line.
I agree that header-only messages are rare and not very useful and this is a minor issue, but not completely worthless.
The simplest solution would be to filter out
Can confirm header-only messages are valid messages. (For reference, here's a similar patch for go-message: https://lists.sr.ht/~emersion/public-inbox/patches/9396)