Re: [go-nuts] [net.mail] ReadMessage returns nil, io.EOF when email w/o body.

2023-07-19 Thread Karan Gupta
lyerd/enmime > > And perhaps this: > > https://github.com/gatherstars-com/jwz > > Jim > > On Wed, Jul 19, 2023 at 9:07 AM Karan Gupta > wrote: > >> That is correct. It is the same issue. >> Thanks for the help. >> >> -Karan >> >> >>

Re: [go-nuts] [net.mail] ReadMessage returns nil, io.EOF when email w/o body.

2023-07-18 Thread Karan Gupta
That is correct. It is the same issue. Thanks for the help. -Karan On Wed, 19 Jul, 2023, 05:15 Ian Lance Taylor, wrote: > On Tue, Jul 18, 2023 at 4:36 PM Karan Gupta > wrote: > > > > RFC 5322 (https://www.rfc-editor.org/rfc/rfc5322#section-3.5) allows > for messages wi

[go-nuts] [net.mail] ReadMessage returns nil, io.EOF when email w/o body.

2023-07-18 Thread Karan Gupta
Hello Everyone RFC 5322 (https://www.rfc-editor.org/rfc/rfc5322#section-3.5) allows for messages without bodies. ` A message consists of header fields, optionally followed by a message body ` However, the net/mail . ReadMessage returns an error when an email does not contain a body. To demonst