Thread View: news.software.nntp
1 messages
1 total messages
Started by Jon Ribbens
Sun, 18 Feb 1996 00:00
How to syntax-check a newsgroup name?
Author: Jon Ribbens
Date: Sun, 18 Feb 1996 00:00
Date: Sun, 18 Feb 1996 00:00
28 lines
1588 bytes
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/ //
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