Article View: news.software.nntp
Article #82426Re: Injection-Info questions
From: Julien ÉLIE
Date: Sat, 26 Dec 2009 18:15
Date: Sat, 26 Dec 2009 18:15
76 lines
3903 bytes
3903 bytes
Hi Steve,
> According to RFC5536, the posting-host format should be:
> posting-host = "posting.example.com:192.0.2.1"
> I assume that whitespace around the '=' is optional (INN2.6.0 doesn't
> have it)? Also, is it safe to assume that the delimiter between
> hostname and address is always the *left-most* colon? I'm thinking
> specifically of ipv6 addresses with colons in them.
Hmm... As we could have a mere IPv6 address in posting-host, it is
not that simple...
I do not know in fact how to parse it properly in all cases...
>From your own articles:
posting-host="ip6-localhost:::1"
So we cannot assume there will be a dot before the first colon.
What for:
posting-host="20bd:20bd::1"
Is it the IPv6 address "20bd:20bd::1" or the host name "20bd" associated
with the IPv6 address "20bd::1"?
As for whitespaces around the '=', I only see that note in RFC 5536:
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>.
It then appears that whitespaces are allowed.
But I wonder why they have been explicitly allowed. In fact, this note
seems unclear. Why should RFC 822 be followed here? Why RFC 5322
does not mention that?
> There also appears to be an issue with Google's implementation of the
> header as they currently use:
> posting-host=192.0.2.1;
> No quotes and no hostname.
A value is defined in Section 5.1 of RFC 2045:
value := token / quoted-string
token := 1*<any (US-ASCII) CHAR except SPACE, CTLs,
or tspecials>
tspecials := "(" / ")" / "<" / ">" / "@" /
"," / ";" / ":" / "\" / <">
"/" / "[" / "]" / "?" / "="
; Must be in quoted-string,
; to use within parameter values
Therefore, quoting is not needed for an IPv4 address like "192.0.2.1".
Besides, the hostname is not mandatory.
host-value = dot-atom-text / IPv4address / IPv6address /
(dot-atom-text ":" ( IPv4address / IPv6address ))
It can be either a host name, or an IPv4 address, or an IPv6 address,
or a host name followed by a colon and an IPv4 or an IPv6 address.
So I believe their implementation is right.
(We would have to check whether quoting is done on IPv6 addresses.)
--
Julien ÉLIE
« En vérité, le chemin importe peu, la volonté d'arriver suffit à tout. »
Technical Details
Message-ID:
<hh5jsa$3q1$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<slrnhjcc9b.u40.steve@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <hh5jsa$3q1$1@news.trigofacile.com> Subject: Re: Injection-Info questions Date: Sat, 26 Dec 2009 19:15:28 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <slrnhjcc9b.u40.steve@news.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 76 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Sat, 26 Dec 2009 18:15:39 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="amontpellier-159-1-21-3.w90-57.abo.wanadoo.fr:90.57.92.3"; logging-data="3905"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <slrnhjcc9b.u40.steve@news.mixmin.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005