mnako / letters

Letters, or how to parse emails in Go
MIT License
46 stars 9 forks source link

Add tests for all characters allowed in header field names and bodies #48

Closed mnako closed 1 year ago

mnako commented 1 year ago

Add tests for all characters permitted in header field names and bodies, as outlined in RFC 5322.

Use two distinct values for the same custom header to ensure the preservation of all values. Divide each example value across multiple lines to verify proper unfolding functionality.

The test values encompass a space and a horizontal tab for thoroughness. Placing the space and tab adjacently will prevent the collapse of multiple whitespace characters into a single one.