Article View: news.software.nntp
Article #12414Re: uk.religion/jewish
From: David C Lawrence
Date: Mon, 18 Nov 1996 00:00
Date: Mon, 18 Nov 1996 00:00
140 lines
7528 bytes
7528 bytes
Evan Champion <evanc@synapse.net> writes:
> Just on the subject of newsgroup name character sets, what is the rule?
> I don't think I've ever seen a published document stating what is
> permitted in a newsgroup name.
A summary, from a program I wrote:
# newsgroup name checks based on RFC 1036bis (not including encodings) rules:
# "component MUST contain at least one letter"
# "[component] MUST not contain uppercase letters"
# "[component] MUST begin with a letter or digit"
# "[component] MUST not be longer than 14 characters"
# "sequences 'all' and 'ctl' MUST not be used as components"
# "first component MUST begin with a letter"
# and enforcing "subsequent components SHOULD begin with a letter" as MUST
# and enforcing at least a 2nd level group (can't use to newgroup "general")
That's about 90% of it. A more complete description is below. You
can skip it if you really don't want all the gory details.
This is Section .5.5 of RFC 1036bis by Henry Spencer. I've
reformatted it so the body isn't quite so long, and indicated elisions
where the text was not relevant to the actual names of groups.
Newsgroups-content = newsgroup-name *( ng-delim newsgroup-name )
newsgroup-name = plain-component *( "." component )
component = plain-component / encoded-word
plain-component = component-start *13component-rest
component-start = lowercase / digit
lowercase = <letter a-z>
component-rest = component-start / "+" / "-" / "_"
ng-delim = ","
[
encoded-word = "=?" charset "?" encoding "?" codes "?="
]
Encoded words used in newsgroup names MUST not contain characters
other than letters, digits, "+", "-", "/", "_", "=", and "?"
(although they may encode them).
A newsgroup name consists of one or more components, which may be
plain components or (except for the first) encoded words. A plain
component MUST contain at least one letter, MUST begin with a letter
or digit, and MUST not be longer than 14 characters. The first
component MUST begin with a letter; subsequent components SHOULD begin
with a letter. Newsgroup names MUST not contain uppercase letters,
except where required by encodings in encoded words. The sequences
"all" and "ctl" MUST not be used as components.
NOTE: The alphabet and syntax specified encompasses all
existing names of widespread newsgroups, while avoiding various
forms that are known to cause problems. Important existing soft-
ware uses various non-alphanumeric characters as punctuation
adjacent to newsgroup names. (It would, in fact, be preferable
to ban "+" from newsgroup names, were it not that several
widespread newsgroups related to the C++ programming language
already use it.)
NOTE: Much existing software converts the newsgroup name into a
directory path and stores the articles themselves using numeric
filenames, so all-digit name components can be troublesome; the
"Great Renaming" early in the history of Usenet included
revisions of several newsgroup names to eliminate such
components.
NOTE: The same storage technique is the reason for the
14-character limit. The limit is now largely historical, since
most modern systems have much larger limits on the length of a
directory entry's name, but many old systems are still in use.
Systems with shorter limits also exist, but news software on
such systems has had to deal with the problem already, since
there are several widespread newsgroups with 14-character
components in their names. Implementors are warned that it is
intended that the successor to this Draft will increase the
14-character limit, and are urged to fix their software to handle
longer names gracefully (if such fixes are necessary, given the
intended domain of application of the particular software).
NOTE: The requirement that the first character of a name be a
letter accommodates existing software which assumes it can tell
the difference between a newsgroup name and other possible
syntactic entities by inspecting the first character. Similar
considerations motivate excluding "+", "-", and "_" from coming
first in a component, and the preference for components that do
not begin with digits. The "all" sequence is used as a wildcard
symbol in much existing software, and the "ctl" sequence was
involved in an obsolete historical mechanism for marking control
messages, so they are best avoided.
NOTE: Possibly newsgroup names should have been case-insensitive,
but all existing software treats them as case-sensitive. (RFC
977 [rrr] claims that they are case-insensitive in NNTP, but
existing implementations are believed to ignore this.) The
simplest solution is just to ban use of upper-case letters,
since no widespread newsgroup name uses them anyway; this avoids
any possibility of confusion.
[...]
NOTE: Encoded words as components are somewhat problematic, but
are clearly desirable for use in non-English-speaking nations.
They are not subject to the 14-character limit, and this (plus
the possibility of "/" within them) may require special
handling in news software.
Encoded words are allowed in newsgroup names ONLY where non-ASCII
characters are necessary to the name, and must use the "b" encoding
[rrr] and the first suitable character set in the MIME order of
preferred character sets [rrr].
NOTE: Since the newsgroup name is the encoded form, NOT the
underlying non-ASCII form, there is room for terrible confusion
here if the choice of encoding for a particular name is not fully
standardized.
[...]
Newsgroup names having only one component are reserved for newsgroups
whose propagation is restricted to a single host (or the
administrative equivalent). It is inadvisable to name a newsgroup
"poster" because that word has special meaning in the Followup-To
header (see section 6.1). The names "control" and "junk" are
frequently used for pseudonewsgroups internal to relayer
implementations, and hence are also best avoided.
[...]
It is conventional to reserve newsgroup names beginning with "to." for
test messages sent on an essentially point-to-point basis (see also
the ihave/sendme protocol described in section 7.2); newsgroup names
beginning with "to." SHOULD not be used for any other purpose. The
second (and possibly later) components of such a name should,
together, comprise the relayer name (see section 5.6) of a relayer.
The newsgroup exists only at the named relayer and its neighbors. The
neighbors all pass that newsgroup to the named relayer, while the
named relayer does not pass it to anyone.
Technical Details
Message-ID:
<8d8xbuppz.fsf@rodan.UU.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.mbox.zip!not-for-mailReferences:
<56jmh1$2c8@wave.zNET.net> <yy3sp6ajwz0.fsf@velo.pp.vix.com>Show Full Headers
Complete Article Headers
Message-ID: <8d8xbuppz.fsf@rodan.UU.NET> Subject: Re: uk.religion/jewish Date: Mon, 18 Nov 1996 00:00:00 +0000 From: David C Lawrence <tale@uunet.uu.net> References: <56jmh1$2c8@wave.zNET.net> <yy3sp6ajwz0.fsf@velo.pp.vix.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.mbox.zip!not-for-mail X-Deja-AN: 197271368 Newsgroups: news.software.nntp