πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80352

Re: INN and newgroups

#80352
From: Peter J Ross
Date: Tue, 10 Mar 2009 21:30
61 lines
3627 bytes
In news.admin.hierarchies on Tue, 10 Mar 2009 21:27:49 +0100, Julien
Γ‰LIE <iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Peter,
>
>>>     return 'Unsafe group name' if /[\`\/:;]/;
>>
>> Does this check do anything useful that the per-component check
>> doesn't?
>
> Nothing more than the following check:
>
>          return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/;
>
> I will comment the first one.

Thanks.

>>>         # Sigh, c++ etc. must be allowed.
>>>         return 'Repeated punctuation in name' if /--|__|\+\+./;
>>
>> Do final -- and __ need to be allowed?
>
> They are not with that syntax.  Should they be allowed then?

OK, I was reading it as if the "." applied to the -- and the __. You
write the kind of regexes that confuse newbies!

>> You might also consider blocking final +++ (or longer)
>
> By the way, where is it said that such names are not valid?
>
> I do not see that in USEFOR.

USEFOR isn't a standard yet. The README at ftp.isc.org is very close
to being a standard, as is the INN code. But neither of them is
*fixed*.

> ("poster" should also be rejected.)

Please explain. What's wrong with "poster" as a newsgroup name
component?

>>> If you have suggestions for these checks, feel free to tell.
>>> Note that a whitespace in the group name or uppercase latters normally
>>> cannot be found here (INN lowercases the group name sooner in the script).
>>
>> Why not reject such names instead of modifying them?
>
> I will remove the lowercase function.
>   Control: NewGroup fr.TesT
> was read as:
>   Control: newgroup fr.test

Thanks again.

-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Technical Details
Message-ID: <slrngrdmv3.skj.pjr@pjr.gotdns.org>
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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.k-dsl.de!news.motzarella.org!motzarella.org!pjr.motzarella.org!not-for-mail
References: <AR039.000000.000@uce.gov> <gos8gd$6re$1@news.albasani.net> <808wnhyjgl.fsf@banana.shacknet.nu> <got324$cqs$1@aux.snarked.org> <gotdup$k04$3@news.albasani.net> <goum3q$sfs$2@aux.snarked.org> <gouo07$hv2$1@news.trigofacile.com> <govsh5$dfa$1@aux.snarked.org> <gp06kc$uj6$1@news.trigofacile.com> <gp17ks$ncv$2@aux.snarked.org> <87ljrfu5ty.fsf@windlord.stanford.edu> <gp1ai5$nsj$1@aux.snarked.org> <874oy3u3t3.fsf@windlord.stanford.edu> <gp3rgq$vod$1@news.trigofacile.com> <slrngrcvkl.skj.pjr@pjr.gotdns.org> <gp6ii6$i0v$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrngrdmv3.skj.pjr@pjr.gotdns.org>
Subject: Re: INN and newgroups
Date: Tue, 10 Mar 2009 21:30:11 +0000
From: Peter J Ross <pjr@example.invalid>
References: <AR039.000000.000@uce.gov> <gos8gd$6re$1@news.albasani.net> <808wnhyjgl.fsf@banana.shacknet.nu> <got324$cqs$1@aux.snarked.org> <gotdup$k04$3@news.albasani.net> <goum3q$sfs$2@aux.snarked.org> <gouo07$hv2$1@news.trigofacile.com> <govsh5$dfa$1@aux.snarked.org> <gp06kc$uj6$1@news.trigofacile.com> <gp17ks$ncv$2@aux.snarked.org> <87ljrfu5ty.fsf@windlord.stanford.edu> <gp1ai5$nsj$1@aux.snarked.org> <874oy3u3t3.fsf@windlord.stanford.edu> <gp3rgq$vod$1@news.trigofacile.com> <slrngrcvkl.skj.pjr@pjr.gotdns.org> <gp6ii6$i0v$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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.k-dsl.de!news.motzarella.org!motzarella.org!pjr.motzarella.org!not-for-mail
Newsgroups: news.software.nntp,news.admin.hierarchies
Organization: none
Lines: 61
Reply-To: Peter J Ross <peadar.ruadh@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.eternal-september.org
 U2FsdGVkX1+1CzE0DIQzAHSnVpmWYhR+JDpnSGXZafHcCgYaWHP0d2YNtqNRcf0Kl5AtmlAydW8hsJZwEOGUIc1f0CxV7IpYHnIGjC1H9wLBAT6sNDWXJUhZHfra/vDq
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Tue, 10 Mar 2009 21:33:02 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX19Pns0MHKztSGvYpym83a47
Cancel-Lock: sha1:elKs/v8er1YXqUQbx/fJX6b0sl8=
User-Agent: slrn/pre1.0.0-2/mm (Linux)