12 Nov
2024
12 Nov
'24
9:19 p.m.
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@example.com> as "Some Body" <somebody@example.com>