[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Parsing the Injection-Info: header field
Hi,
I follow a discussion that was initiated in news.software.nntp:
http://groups.google.fr/group/news.software.nntp/browse_frm/thread/c704d0859dd84d38
<news:slrnhjcc9b.u40.steve@xxxxxxxxxxxxxxx>
According to Section 3.2.8 of RFC 5536:
injection-info = "Injection-Info:" SP [CFWS] path-identity
[CFWS] *( ";" [CFWS] parameter ) [CFWS] CRLF
NOTE: The syntax of <parameter> (Section 5.1 of [RFC2045], as
amended by [RFC2231]), taken in conjunction with the folding rules
of [RFC0822] (note: not [RFC2822] or [RFC5322]), effectively
allows [CFWS] to occur on either side of the "=" inside a
<parameter>.
I do not understand well that point.
Does it mean that CFWS is allowed both before and after the "="?
Why should RFC 822 be followed here? And why doesn't RFC 5322 mention
that?
I thought that RFC 5536 was based upon RFC 5322 and therefore would
not allow a space before "=", and would allow a space after "=" only
if <value> is a quoted-string.
Just afterwards:
<attribute> format of <value>
-------------------- -----------------
"posting-host" a <host-value>
"posting-account" any <value>
"logging-data" any <value>
"mail-complaints-to" an <address-list>
NOTE: Since any such <host-value> or <address-list> also has to be
a syntactically correct <value>, it will usually be necessary to
encapsulate it as a <quoted-string>, for example:
posting-host = "posting.example.com:192.0.2.1"
So it shows that a space is allowed before "=".
Isn't it a difference with RFC 5322 that ought to be mentioned in appendix C?
When it is said that <host-value> is encapsulated as a <quoted-string>, does
it mean that:
posting-host = "pos\ting.example.com"
posting-host = (Comment) "posting.example.com" (Comment)
are two valid values for this parameter? (Both being "posting.example.com".)
Incidentally, I do not know how to parse
posting-host="20bd:20bd::1"
It could be the IPv6 address "20bd:20bd::1" or the host name "20bd" associated
with the IPv6 address "20bd::1"!
--
Julien ÉLIE
« En vérité, le chemin importe peu, la volonté d'arriver suffit à tout. »