🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Andrew Gierth Sun, 01 Jun 1997 00:00
Newsgroup name limits and other oddities
#18133
Author: Andrew Gierth
Date: Sun, 01 Jun 1997 00:00
36 lines
1937 bytes
I'm part of a group of people putting together a proposal for a new
global hierarchy (mod.*). For details, see news.admin.hierarchies.
Please don't discuss the overall proposal here.

Part of the proposal is to have an uncontrolled namespace, where the
only restrictions on group naming are aimed at preventing technical
problems. Therefore, we need information as to exactly what the
known problems with newsgroup names are. The issues we are aware of
are:

1. All-numeric newsgroup names.

INN gets slightly upset if an incoming article clashes with a
directory name. I believe there's a bug here (but I haven't confirmed
this yet): if REMEMBER_TRASH is set to DO, the dropped article is
added to the history, so it's gone for good.

2. Character set of newsgroup names.

Standard advice in alt.config is to stick to [a-z0-9+-], but are
there actually any problems with including [A-Z] and _ as well?

3. Length issues.

Are there any servers around that actually break on >14 char
components, other than SCO 3.2.2/ODT 1 with a particular security
option? What are the maaximum lengths supported by common non-Unix
servers?

What's a good limit for the total length of a group name?

-- 
Andrew.

Re: Newsgroup name limits and other oddities
#18135
Author: Paul Tomblin
Date: Sun, 01 Jun 1997 00:00
18 lines
1350 bytes
In a previous article, Andrew Gierth <andrew@erlenstar.demon.co.uk> said:
>2. Character set of newsgroup names.
>
>Standard advice in alt.config is to stick to [a-z0-9+-], but are
>there actually any problems with including [A-Z] and _ as well?

C-news (remember that?) by default doesn't like [A-Z], but you can work around
that.


-- 
Paul Tomblin (ptomblin@xcski.com), Rochester Flying Club
<a href="http://www.servtech.com/public/ptomblin/rfc/">RFC Web Page</a>
<a href=http://www.beapilot.com/>Stop Dreaming, Start Flying</a>
Email sent to me with a "spamblock" return address will be treated like spam.

Re: Newsgroup name limits and other oddities
#18142
Author: Andrew Gierth
Date: Mon, 02 Jun 1997 00:00
23 lines
1458 bytes
>>>>> "Olaf" == Olaf Titz <olaf@bigred.inka.de> writes:

 Olaf> The primary "offenders" are name components over 14
 Olaf> characters (many of them in microsoft.*)

We propose to explicitly allow these in mod.*. Our current proposal
is for the limit to be 30.

 Olaf> upcase letters (mostly in alt.*)

These are forbidden in the current mod.* proposal. It was a suggestion
that we allow them that prompted me to start this thread.

 Olaf> and the characters "+&_".

INN takes exception to '&', but '+' is used in several big-8 groups and
'_' seems to be pretty harmless.

-- 
Andrew.

Re: Newsgroup name limits and other oddities
#18149
Author: Paul Tomblin
Date: Mon, 02 Jun 1997 00:00
27 lines
1871 bytes
In a previous article, Andrew Gierth <andrew@erlenstar.demon.co.uk> said:
>>>>>> "Paul" == Paul Tomblin <ptomblin@xcski.com> writes:
> Paul> C-news (remember that?) by default doesn't like [A-Z], but you
> Paul> can work around that.
>
>How easily?

You have to modify namecheck.awk to allow the newsgroup names you want.
To allow upper case names, you have to remove the lines:
                else if (c ~ /[A-Z]/)
                        print "uppercase letter(s) in name"

You might also want to modify the other lines, such as:
                else if (c ~ /[^a-z0-9+_-]/)
                        print "illegal character(s) in name"
                else if (c ~ /--|__|\+\+./)     # sigh, c++ etc must be allowed
                        print "repeated punctuation in name"


-- 
Paul Tomblin (ptomblin@xcski.com), Rochester Flying Club
<a href="http://www.servtech.com/public/ptomblin/rfc/">RFC Web Page</a>
<a href=http://www.beapilot.com/>Stop Dreaming, Start Flying</a>
Email sent to me with a "spamblock" return address will be treated like spam.

Re: Newsgroup name limits and other oddities
#18159
Author: Forrest J. Cavalier III
Date: Mon, 02 Jun 1997 00:00
89 lines
3903 bytes
In article <87pvu6434y.fsf@erlenstar.demon.co.uk>, andrew@erlenstar.demon.co.uk 
wrote...
>
>I'm part of a group of people putting together a proposal for a new
>global hierarchy (mod.*). For details, see news.admin.hierarchies.
>Please don't discuss the overall proposal here.
>
>Part of the proposal is to have an uncontrolled namespace, where the
>only restrictions on group naming are aimed at preventing technical
>problems. Therefore, we need information as to exactly what the
>known problems with newsgroup names are. The issues we are aware of
>are:
>
>1. All-numeric newsgroup names.
>
>INN gets slightly upset if an incoming article clashes with a
>directory name. I believe there's a bug here (but I haven't confirmed
>this yet): if REMEMBER_TRASH is set to DO, the dropped article is
>added to the history, so it's gone for good.
>

Newsgroup names which have numeric components are just a bad idea,
since they confuse weak expire algorithms, and anything that scans
the spool.  It is not just the standard tools you have to worry about.

Many people have written their own.  What about DNEWS?, Microsoft?
Netscape?  Others?

>2. Character set of newsgroup names.
>
>Standard advice in alt.config is to stick to [a-z0-9+-], but are
>there actually any problems with including [A-Z] and _ as well?
>

From RFC977 3.2:

   Note that the name of the newsgroup is not case-dependent.  It must
   otherwise match a newsgroup obtained from the LIST command or an
   error will result.



>3. Length issues.
>
>Are there any servers around that actually break on >14 char
>components, other than SCO 3.2.2/ODT 1 with a particular security
>option? What are the maaximum lengths supported by common non-Unix
>servers?
>
>What's a good limit for the total length of a group name?

Long newsgroup names mean longer entries in history and .overview
With crossposts, this can mean substantial extra overhead. I guess
some news admins just will decide not to carry the whole heirarchy.

I say stick with the current 14 character limit if you want to
get a good following.

------------------------------------------------------------------
And a general note: it does not matter that INN or C news can be
"easily fixed" to accomodate numerical path components, uppercase, or
long newsgroup names.  Some news sites are still running B news!
This tells you something about willingness to move to something
"better" or "improved."

If a news admin is faced with the choice of 
  upgrading/patching to carry mod.* groups which break their server,
vs 
  just not carrying the heirarchy,

which do you think they will choose?

-----------------------------------------------------------------
I glanced at the proposal in news.admin.heirarchies.  If you are
trying to make Usenet a better place, it seems that relaxing
naming conventions is contrary to that conservative philosophy:
Some existing systems will break.  

What is the reason to not make it backwards compatible?  Is it
good enough that you will sacrifice not being made available
on some sites?

Forrest Cavalier, Mib Software, INN customization and consulting
Searchable Hypertext docs on Usenet, INN, news RFCs:
http://www.mibsoftware.com/userkt/userkt.html


Re: Newsgroup name limits and other oddities
#18162
Author: Andrew Gierth
Date: Mon, 02 Jun 1997 00:00
20 lines
1309 bytes
>>>>> "Paul" == Paul Tomblin <ptomblin@xcski.com> writes:

 > In a previous article, Andrew Gierth <andrew@erlenstar.demon.co.uk> said:
 >> 2. Character set of newsgroup names.
 >> 
 >> Standard advice in alt.config is to stick to [a-z0-9+-], but are
 >> there actually any problems with including [A-Z] and _ as well?

 Paul> C-news (remember that?) by default doesn't like [A-Z], but you
 Paul> can work around that.

How easily?

IOW, how much of a problem is it likely to be in practice?

-- 
Andrew.

Re: Newsgroup name limits and other oddities
#18288
Author: Bob Sloane
Date: Thu, 05 Jun 1997 00:00
12 lines
1074 bytes
> Standard advice in alt.config is to stick to [a-z0-9+-], but are
> there actually any problems with including [A-Z] and _ as well?

Not all news systems run unix. Some systems don't have case distinct
file names, so that mod.A would be the same group as mod.a on those
systems.
-- 
USmail: Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
E-mail: sloane@ukans.edu Phone: (913) 864-0444 Web: www.ukans.edu/home/sloane

Re: Newsgroup name limits and other oddities
#18310
Author: Forrest J. Cavalier III
Date: Fri, 06 Jun 1997 00:00
37 lines
2000 bytes
In article <5n7qpc$4sm$1@gidora.kralizec.net.au>, nick@zeta.org.au wrote...
>
>In <sEwsD6Sunyam@kuhub.cc.ukans.edu> sloane@ukans.edu (Bob Sloane) writes:
>
>>Not all news systems run unix. Some systems don't have case distinct
>>file names, so that mod.A would be the same group as mod.a on those
>>systems.
>
>That's an implementation issue and does not belong in a specification of
>USENET newsgroups. In other words, news servers running on operating systems
>with case-independent filenames must not simply map newsgroup names to
>directory names if the newsgroup specification says that case is distinct
>in newsgroup names.
>
>Any number of alternate mappings are available, including numbering
>newsgroups or doing statistics on group lookup to generate optimum hash
>values or directory layout for fastest access, etc. etc.
>

It isn't a question of what the OS supports.

As I said in an earlier post:
RFC 977 3.2 says that newsgroup names are not case dependent.

Read it for yourself:
    http://www.mibsoftware.com/userkt/nntp/0014.htm

I believe INN "lower casifies" group names everywhere anyway.

I see this is cross-posted to news.software.b.  I don't want to
offend anyone there.  I don't know what B news does.

Forrest Cavalier, Mib Software, INN customization and consulting


Re: Newsgroup name limits and other oddities
#18312
Author: Nick Andrew
Date: Fri, 06 Jun 1997 00:00
13 lines
958 bytes
In <5n7ulj$2rb$2@news1.epix.net> mibsoft@epix.net (Forrest J. Cavalier III) writes:

>It isn't a question of what the OS supports.

Exactly. It's a question of what the spec says.

Nick.
-- 
Kralizec / Zeta Microcomputer Software  Fax: +61-2-9233-6545 Voice: 9837-1397
G.P.O. Box 3400, Sydney NSW 1043        http://www.zeta.org.au/

Re: Newsgroup name limits and other oddities
#18316
Author: Nick Andrew
Date: Fri, 06 Jun 1997 00:00
23 lines
1570 bytes
In <sEwsD6Sunyam@kuhub.cc.ukans.edu> sloane@ukans.edu (Bob Sloane) writes:

>Not all news systems run unix. Some systems don't have case distinct
>file names, so that mod.A would be the same group as mod.a on those
>systems.

That's an implementation issue and does not belong in a specification of
USENET newsgroups. In other words, news servers running on operating systems
with case-independent filenames must not simply map newsgroup names to
directory names if the newsgroup specification says that case is distinct
in newsgroup names.

Any number of alternate mappings are available, including numbering
newsgroups or doing statistics on group lookup to generate optimum hash
values or directory layout for fastest access, etc. etc.

Nick.
-- 
Kralizec / Zeta Microcomputer Software  Fax: +61-2-9233-6545 Voice: 9837-1397
G.P.O. Box 3400, Sydney NSW 1043        http://www.zeta.org.au/

Re: Newsgroup name limits and other oddities
#18326
Author: Paul Tomblin
Date: Sat, 07 Jun 1997 00:00
20 lines
1713 bytes
In a previous article, mibsoft@epix.net (Forrest J. Cavalier III) said:
>I doubt there will ever be much incentive to fix this.  And
>any such change will probably break working systems and/or
>news clients.  I suppose the spec should be changed?
>
>Can anyone familiar with B or C news make a comment?

B News and older versions of C News didn't care, and would quite happily let
some idiot newgroup 'News.software.b', even if 'news.software.b' already
existed.  Later versions of C News got more picky about the letter of the
RFCs, and would complain about any upper case letters in newsgroup names.

-- 
Paul Tomblin (ptomblin@xcski.com), Rochester Flying Club
<a href="http://www.servtech.com/public/ptomblin/rfc/">RFC Web Page</a>
<a href=http://www.beapilot.com/>Stop Dreaming, Start Flying</a>
Email sent to me with a "spamblock" return address will be treated like spam.

Re: Newsgroup name limits and other oddities
#18327
Author: Ian Stirling
Date: Sat, 07 Jun 1997 00:00
35 lines
2626 bytes
In news.software.nntp Jeff Garzik <jeff.garzik@spinne.com> wrote:
: Forrest J. Cavalier III wrote:
: > I believe INN "lower casifies" group names everywhere anyway.

: Not true.  The Intel.* groups are stored case-unmodified on my 1.5.1
: server, both on disk and in the active file.  With INN, a newsgroup by
: any other name just isn't a newsgroup.

Indeed, and on inn1.4unoff , 
test.test,
test.Test,
test.TesT
All appear as seperate groups, when ctlinnd newgrouped, and 
newsreades see them as such.
However, anyone seriously considering a heirarchy where newsgroups may
be distinguished by case should be second in line for the pyre, 
just behind Gates :)

: -- 
: Jeff Garzik
: News Administrator, Spinne, Inc.
: http://www.spinne.com/usenet/

-- 

Notice: Anyone mailing to this account should check the notices in the header.
Ian Stirling.                     Currently designing a new PDA, see homepage.
Homepage:                         http://www.mauve.demon.co.uk/
Get off a shot FAST, this upsets him long enough to let you make your
second shot perfect.
Robert A Heinlein.


Re: Newsgroup name limits and other oddities
#18329
Author: Jeff Garzik
Date: Sat, 07 Jun 1997 00:00
34 lines
2159 bytes
Forrest J. Cavalier III wrote:
> There is a
> EQ() comparison in NGfind() in innd, and GRPfind() in nnrpd.
> I don't know what I was thinking when I wrote that.

> Perhaps those responsible (James, Rich?) can say why caseEQ() was
> not used so that INN would be fully compliant with RFC 977 in this
> area.

> I doubt there will ever be much incentive to fix this.  And
> any such change will probably break working systems and/or
> news clients.


The change is a no-brainer, unless there's something hidden in the code
that assumes the group find functions call EQ() not caseEQ().  Just
leave all the article pathname code alone, and just concentrate on
making sure case insensitive matches are made at the interface level;
maybe lowercase all newsgroup names upon input instead of updating
NGfind() et. al.

What the news server returns is what is canon for its news clients. 
Making INN case-insensitive *will* change existing behavior, but that is
limited to acting a little bit differently to pull feeds and client
readers.  Existing clients generally sent back whatever's in the output
of LIST [ACTIVE], so that's probably why there's never been any real
worry.  Someone should update it to conform to the standard, though.
-- 
Jeff Garzik
News Administrator, Spinne, Inc.
http://www.spinne.com/usenet/

Re: Newsgroup name limits and other oddities
#18330
Author: Forrest J. Cavalier III
Date: Sat, 07 Jun 1997 00:00
35 lines
1874 bytes
In article <33991C9F.15015450@spinne.com>, jeff.garzik@spinne.com wrote...
>
>Forrest J. Cavalier III wrote:
>> I believe INN "lower casifies" group names everywhere anyway.
>
>Not true.  The Intel.* groups are stored case-unmodified on my 1.5.1
>server, both on disk and in the active file.  With INN, a newsgroup by
>any other name just isn't a newsgroup.

After looking more closely at the code in parsecontrol and
running some tests, I'm convinced you are right.  There is a
EQ() comparison in NGfind() in innd, and GRPfind() in nnrpd.
I don't know what I was thinking when I wrote that.

Perhaps those responsible (James, Rich?) can say why caseEQ() was
not used so that INN would be fully compliant with RFC 977 in this
area.

I doubt there will ever be much incentive to fix this.  And
any such change will probably break working systems and/or
news clients.  I suppose the spec should be changed?

Can anyone familiar with B or C news make a comment?


>-- 
>Jeff Garzik
>News Administrator, Spinne, Inc.
>http://www.spinne.com/usenet/

Forrest Cavalier, Mib Software, INN customization and consulting


Re: Newsgroup name limits and other oddities
#18334
Author: Jeff Garzik
Date: Sat, 07 Jun 1997 00:00
13 lines
1121 bytes
Forrest J. Cavalier III wrote:
> I believe INN "lower casifies" group names everywhere anyway.

Not true.  The Intel.* groups are stored case-unmodified on my 1.5.1
server, both on disk and in the active file.  With INN, a newsgroup by
any other name just isn't a newsgroup.
-- 
Jeff Garzik
News Administrator, Spinne, Inc.
http://www.spinne.com/usenet/

Re: Newsgroup name limits and other oddities
#18356
Author: Ian Stirling
Date: Mon, 09 Jun 1997 00:00
36 lines
2954 bytes
In news.software.nntp Nick Andrew <nick@zeta.org.au> wrote:
: In <0000339981C6.NO_UCE@mauve.demon.co.uk> Ian Stirling <0000339981C6.NO_UCE@mauve.demon.co.uk> writes:

: >However, anyone seriously considering a heirarchy where newsgroups may
: >be distinguished by case should be second in line for the pyre, 
: >just behind Gates :)

: How then, do you propose handling national languages in newsgroup names,
: in which folding of strings to "lower case" is not the simple "OR with 0x20"
: to which you are accustomed?

Interesting point, however, it looks like for the forseeable future
the only real standard will be chars 0-127. Barring something like
unicode, (which I understand is for this), for languages that have
capitals, I'd say map (at least re: new group checking, maybe more) 
all distinct cases to one set. 
Are there any languages in which case actually carries information?
Anyway, if you are claiming to want to support other languages,
you need some way of telling what language a groupname should be 
parsed in, unless you go to 2 byte chars, for non-english groups.
A potential morass.


: Nick.
: -- 
: Kralizec / Zeta Microcomputer Software  Fax: +61-2-9233-6545 Voice: 9837-1397
: G.P.O. Box 3400, Sydney NSW 1043        http://www.zeta.org.au/

-- 
Ian Stirling.   Designing a linux PDA, see  http://www.mauve.demon.co.uk/
-----******* If replying by email, check notices in header *******-------
He who lives in a glass house should not invite he who is without sin.


Re: Newsgroup name limits and other oddities
#18362
Author: Nick Andrew
Date: Mon, 09 Jun 1997 00:00
17 lines
1237 bytes
In <0000339981C6.NO_UCE@mauve.demon.co.uk> Ian Stirling <0000339981C6.NO_UCE@mauve.demon.co.uk> writes:

>However, anyone seriously considering a heirarchy where newsgroups may
>be distinguished by case should be second in line for the pyre, 
>just behind Gates :)

How then, do you propose handling national languages in newsgroup names,
in which folding of strings to "lower case" is not the simple "OR with 0x20"
to which you are accustomed?

Nick.
-- 
Kralizec / Zeta Microcomputer Software  Fax: +61-2-9233-6545 Voice: 9837-1397
G.P.O. Box 3400, Sydney NSW 1043        http://www.zeta.org.au/

Re: Newsgroup name limits and other oddities
#18456
Author: Bruce Becker
Date: Fri, 13 Jun 1997 00:00
110 lines
4597 bytes
In article <EB5D0r.7rr@xcski.com>, Paul Tomblin <ptomblin@xcski.com> wrote:
|In a previous article, Andrew Gierth <andrew@erlenstar.demon.co.uk> said:
|>>>>>> "Paul" == Paul Tomblin <ptomblin@xcski.com> writes:
|> Paul> C-news (remember that?) by default doesn't like [A-Z], but you
|> Paul> can work around that.
|>
|>How easily?
|
|You have to modify namecheck.awk to allow the newsgroup names you want.
|To allow upper case names, you have to remove the lines:
|                else if (c ~ /[A-Z]/)
|                        print "uppercase letter(s) in name"
|
|You might also want to modify the other lines, such as:
|                else if (c ~ /[^a-z0-9+_-]/)
|                        print "illegal character(s) in name"
|                else if (c ~ /--|__|\+\+./)     # sigh, c++ etc must be allowed
|                        print "repeated punctuation in name"


	Below is the "multicultural" version we use around
	these parts for CNews...


  ,u,	 Bruce Becker		Toronto, Ontario	1 416 699 1868
a /i/	 Internet: bdb@gts.org	Uucp: ...!gts!bdb
 `\o\-e  You know, if it weren't for the graft, corruption and violence,
 _< /_	 	this city wouldn't be any fun at all	- Julie Winters

 --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------

# awk program to check newsgroup names for validity, rigorously
# echo groupname | awk -f namecheck.awk
# It may look like some things in per-component checking could be done
# more efficiently by moving them into whole-name checking.  The presence
# of encoded name components messes this up.
NR == 1 {
	# whole-name checks
	bad = 1
	if (NF == 0)
		print "empty name"
	else if (NF > 1)
		print "white space in name"
	else if ($1 ~ /^\./ || $1 ~ /\.$/ || $1 ~ /\.\./)
		print "bad dot(s) in name"
	else if ($1 !~ /^[a-zA-Z]/)	# A-Z is caught later
		print "name does not begin with a letter"
	else if ($1 ~ /^(junk|control)\./)
		print "name starts with control or junk"
	else
		bad = 0
	if (bad == 1)
		exit 1

	# per-component checks
	nc = split($1, cpt, ".")
	for (i = 1; i <= nc; i++) {
		bad = 1
		c = cpt[i]
		# some of these two-part tests may look like they could be
		# simplified to one-parters, but some broken awks then fail
		if (c ~ /^=/ && c !~ /^=\?[^=?]+\?[^=?]+\?[^?]+\?=$/)
			print "name component resembles encoded word but isn't one"
		else if (c ~ /^=/ && c !~ /^=[a-zA-Z0-9+_=?-]*=$/)
			print "bad character in encoded name component"
		else if (c ~ /^=/ && c !~ /^=\?[^?]+\?b\?/)
			print "encoded name component does not use b encoding"
		else if (c ~ /^=/)
			bad = 0		# looks like an okay encoded word
		#else if (c ~ /^[0-9]*$/)
		#	print "all-numeric name component"
		else if (c !~ /^[a-zA-Z0-9]/)	# A-Z caught later
			print "name component starts with non-alphanumeric"
		else if (c !~ /[a-zA-Z0-9]/)	# A-Z caught later
			print "name component does not contain alphanumeric"
		else if (i == nc && (c == "all" || c == "ctl"))
			print "`all' or `ctl' used as name component"
		#else if (length(c) > 14)
		#	print "name component longer than 14 characters"
		#else if (c ~ /[A-Z]/)
		#	print "uppercase letter(s) in name"
		else if (c ~ /[^a-zA-Z0-9+_-]/)
			print "illegal character(s) in name"
		#else if (c ~ /--|__|\+\+./)	# sigh, c++ etc must be allowed
		#	print "repeated punctuation in name"
		#else if (c == cpt[i+1])
		#	print "repeated component(s) in name"
		else
			bad = 0

		if (bad == 1)
			exit 1
	}
}
NR >= 2 {
	print "newline(s) in name"
	exit 1
}
END {
	exit 0
}

-- 
  ,u,	 Bruce Becker		Toronto, Ontario	1 416 699 1868
a /i/	 Internet: bdb@gts.org	Uucp: ...!gts!bdb
 `\o\-e  You know, if it weren't for the graft, corruption and violence,
 _< /_	 	this city wouldn't be any fun at all	- Julie Winters

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads