πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82436

Re: Injection-Info questions

#82436
From: D. Stussy
Date: Sun, 27 Dec 2009 07:55
76 lines
4102 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:hh5jsa$3q1$1@news.trigofacile.com...
> > 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.)

If we're following RFC 2045 syntax, then IPv6 addresses must be quoted
strings as they contain at least two colons (but only one colon need invoke
the requirement).

Technical Details
Message-ID: <hh73ub$8aq$1@snarked.org>
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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!de-l.enfer-du-nord.net!gegeweb.org!news.snarked.org!not-for-mail
References: <slrnhjcc9b.u40.steve@news.mixmin.net> <hh5jsa$3q1$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <hh73ub$8aq$1@snarked.org>
Subject: Re: Injection-Info questions
Date: Sat, 26 Dec 2009 23:55:31 -0800
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <slrnhjcc9b.u40.steve@news.mixmin.net> <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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feeder.erje.net!de-l.enfer-du-nord.net!gegeweb.org!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 76
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-51-172.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1261900555 8538 71.118.51.172 (27 Dec 2009 07:55:55 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Sun, 27 Dec 2009 07:55:55 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478