go-nntp icon indicating copy to clipboard operation
go-nntp copied to clipboard

Posting articles discard original headers

Open mildred opened this issue 6 years ago • 1 comments

When handling a POST request with the NNTP server library, the headers are parsed and the original headers are discarded.

In particular, the header order is discarded as the parsed headers are stored in a map that doesn't keep the order.

It would be great to have access to unparsed posted message. Once the message is stored in a buffer, we can then parse at will the headers afterwards. I can prepare a pull request for that.

mildred avatar Jul 26 '18 22:07 mildred

The problem seems to be next/textproto's MIMEHeader type. Not sure why it was a map, but it's not surprising nobody can figure out how to handle headers.

dustin avatar Aug 05 '18 05:08 dustin