πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81263

Re: Have I to issue a GROUP command before POSTing?

#81263
From: Russ Allbery
Date: Thu, 04 Jun 2009 20:53
83 lines
4582 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> However, you have a good point and I'm not sure.
>
> It is true that keywords are case insensitive in RFC 3977 and I do not
> see well where it is stated that a newsgroup is case-insensitive.
>
>  group-command  = "GROUP" [WS newsgroup-name]
>  newsgroup-name = 1*wildmat-exact
>  wildmat-exact  = %x22-29 / %x2B / %x2D-3E / %x40-5A / %x5E-7E /
>                   UTF8-non-ascii  ; exclude ! * , ? [ \ ]

>From the RFC 3977 perspective, newsgroup names are opaque tokens.
draft-ietf-usefor-usefor-12 says that one SHOULD NOT use uppercase
characters in newsgroup names.  I don't see something that says
explicitly that newsgroups are case-sensitive, but since nothing says
they're case-insensitive, they're case-sensitive (which was the
intention).

They are definitely case-sensitive in practice.

>  10.3.  Outstanding Issues
>
>   Restricting newsgroup names to UTF-8 is not a complete solution.  In
>   particular, when new newsgroup names are created or a user is asked
>   to enter a newsgroup name, some scheme of canonicalisation will need
>   to take place.  This specification does not attempt to define that
>   canonicalization; further work is needed in this area, in
>   conjunction with the article format specifications.  Until such
>   specifications are published, implementations SHOULD match newsgroup
>   names octet by octet.  It is anticipated that any approved scheme
>   will be applied "at the edges", and therefore octet-by-octet
>   comparison will continue to apply to most, if not all, uses of
>   newsgroup names in NNTP.

> Would it be only said in that paragraph?  Because a news server SHOULD
> match a newsgroup name octet by octet?

This was really just meant to deal with UTF-8 canonicalization (which
wouldn't change case).

> Wildmats are case-sensitive too (unless I am mistaken).

RFC 3977:

   A <wildmat-exact> matches the same character (which may be more than
   one octet in UTF-8).

so yes.  Upper- and lower-case versions of a letter are different
characters.

> And message-IDs too.  But it is not clearly said.  Are they
> case-insensitive?!?

No.

> I read in RFC 5536 (USEFOR):
>
>   Some software will try to match the <id-right> of a <msg-id> in a
>   case-insensitive fashion; some will match it in a case-sensitive
>   fashion.  Implementations MUST NOT generate a Message-ID where the
>   only difference from another Message-ID is the case of characters in
>   the <id-right> part.
>
>   NOTE:  All-digit <component>s conflict with one widely used storage
>   scheme for articles.  Mixed-case groups cause confusion between
>   systems with case-sensitive matching and systems with case-
>   insensitive matching of <newsgroup-name>s.
>
> It does not say what should in fact be done.  Are they in fact
> case-insensitive?

It guarantees that you will never get different results if you compare
them case-sensitively or case-insensitively on the right-hand side, so
you can do whichever you want.

The left-hand side is explicitly stated to be case-sensitive.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87zlcnn2jv.fsf@windlord.stanford.edu>
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!feeder.erje.net!news-xfer.nntp.sonic.net!news.kjsl.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
References: <3l06f6-ji1.ln1@mail.viste-family.net> <7o6lf6-lup.ln1@mail.viste-family.net> <h094go$hqf$1@news.trigofacile.com> <bsjlf6-frq.ln1@mail.viste-family.net> <h0997m$m2t$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87zlcnn2jv.fsf@windlord.stanford.edu>
Subject: Re: Have I to issue a GROUP command before POSTing?
Date: Thu, 04 Jun 2009 13:53:40 -0700
From: Russ Allbery <rra@stanford.edu>
References: <3l06f6-ji1.ln1@mail.viste-family.net> <7o6lf6-lup.ln1@mail.viste-family.net> <h094go$hqf$1@news.trigofacile.com> <bsjlf6-frq.ln1@mail.viste-family.net> <h0997m$m2t$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!feeder.erje.net!news-xfer.nntp.sonic.net!news.kjsl.com!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 83
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1244148820 27967 171.67.225.134 (4 Jun 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
Cancel-Lock: sha1:7Jj7SAIGA/L+Se74PPfeKqLQK5g=