🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5044

How to syntax-check a newsgroup name?

#5044
From: Jon Ribbens
Date: Sun, 18 Feb 1996 00:00
28 lines
1588 bytes
I was wondering where the valid syntax for a newsgroup name is defined.
Recently I wrote a routine to check a group name, and it decides a group
name is invalid if it contains one or more of the following:

  * leading, trailing, or more than one consecutive '.'
  * control or space characters (i.e. anything <33)
  * top-bit-set or the del character (i.e. anything >126)
  * '!', '"', '#' "'", '*', ',', '/', ':', ';', '<', '>', '?', '[', '\',
    ']', '^'

This routine is to be used in the context of syntax-checking the "active"
file, so it must be lenient - any groups which fail the check will be
totally unavailable to the user. This is why I didn't disallow more
characters, or groups with entirely numeric sub-sections - groups with
such faults already exist.

Does anybody have any comments? I couldn't find anything relevant in
RFCs 977 or 1036.

Cheers


Jon
____
\  // Jon Ribbens // jon@doggysoft.co.uk //
 \//     http://www.doggysoft.co.uk/    //

Technical Details
Message-ID: <19960218.135818.88@doggysft.demon.co.uk>
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

Show Full Headers
Complete Article Headers
Message-ID: <19960218.135818.88@doggysft.demon.co.uk>
Subject: How to syntax-check a newsgroup name?
Date: Sun, 18 Feb 1996 00:00:00 +0000
From: jon@doggysoft.co.uk (Jon Ribbens)
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: 139888824
Distribution: world
X-nntp-posting-host: doggysft.demon.co.uk
Organization: DoggySoft Ltd.
Reply-to: jon@doggysoft.co.uk
Newsgroups: news.software.nntp