[tin-bugs] Tin incorrectly parses comment blocks in CFWS blocks (per RFC5322 3.2.2)

Urs Janßen urs at akk.org
Tue Nov 12 22:19:55 CET 2024


On Mon, Nov 11, 2024 at 07:33:26PM -0500, Stephen Hurd wrote:
> Section 3.2.2 in RFC-5322 covers this in detail and contains the CFWS ABNF
> grammar... the angle-addr grammar starts with optional CFWS, which makes it
> legal to put a comment (surrounded by parentheses) before there.  Most
> importantly, is the final paragraph which states "Runs of FWS, comment, or
> CFWS that occur between lexical tokens in a structured header field are
> semantically interpreted as a single space character."

*gnaa* you are correct, we overlooked the C in CFWS here.
should be fixed in the next release (the code now renders
the example
	Some Body" (Cool Guy) <somebody at example.com>
as
	"Some Body" <somebody at example.com>



More information about the tin-bugs mailing list