Re: Headers folding

Julien ÉLIE <[email protected]> Tue, 21 Apr 2009 19:24:38 +0200
Newsgroups gmane.ietf.usenet.format
Organization TrigoFACILE -- http://www.trigofacile.com/
Message-ID <04F11AE925534F49BE25070BE7EDD399@Iulius>
Hi Charles,

>>    header = header-name ":" [CRLF] SP header-content CRLF
>>
>> Is it a valid header for USEFOR?  and for RFC 5322?
>
> I think it is valid in RFC 5322, but NOT in RFC 3977 and NOT in USEFOR.

This syntax is taken from RFC 3977, which says:

   Header lines SHOULD NOT be folded before the space
   after the colon that follows the header name.

It is not a MUST NOT :)
Of course it is better not to do such a folding.


>>     header-content = [WS] token *( [CRLF] WS token )
>
> I think that is just to allow extra WS once you have got past the
> obligatory first SP. I think it works.

OK.  Yes it works.

-- 
Julien ÉLIE

« Je viens de rencontrer Isocèle : il a une idée pour un nouveau triangle. » (Woody Allen)