Article View: news.software.nntp
Article #79148Re: Cleanfeed - Any rules for invalid group names?
From: D. Stussy
Date: Thu, 26 Jun 2008 20:14
Date: Thu, 26 Jun 2008 20:14
49 lines
3686 bytes
3686 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:g3u5cn$5qt$1@news.trigofacile.com... > > I'm seeing some messages with bogus group names with "&" and "@" in them. > > I've also seen ";" being used as a separator instead of ",". Has anyone > > else written a group name filter (a regex expression) patch? > > > > Based on the valid names at isc.org -- with one modification (allowing a > > digit as the first character), I think the appropriate expression should be > > something close to: > > > > [a-z0-9]([-a-z0-9._+]*[-a-z0-9_+])* > > Do you really want a regexp in order to achieve that? > Otherwise, you can see what newgroup.pl does in INN: Newgroup.pl only filters control messages, not those locally input via ctlinnd. (See below) I don't need to check for "everything." > > As far as any patch goes, there's also one option I'd like as a > > consideration: Whether an article with an invalid group name should be > > accepted (altered to post only to its valid groups, if any) or outright > > rejected (i.e. not posted to any groups). > > I think it should be accepted. It is the default behaviour of news server, > I assume. If you post to "news.software.nntp,unknown.group" and if your > news server has the first one, I believe it should be posted to it. > (as for the "junk" newsgroup when you do not have news.software.nntp, > I do not think it useful for readers) I thought about this, and decided that I was thinking about the wrong point in the transaction - for what I want to do. However, I also feel that a "437 Invalid Group Name" may be better than "437 No Such Group," so I thought of cleanfeed first. Lastly, noting that articles to bad group names are basically spam, that's why I was thinking of discarding messages that had them and NOT accepting them into the valid groups listed. So that might occasionally discard a non-spammy message with a misspelled group, but don't most news readers warn about non-listed groups before/when posting anyway? What I need is an expression that can filter the "unwanted.log" file output - as that's really where I'd be using it. I'd like to separate my unwanted list into two (or more) lists: Groups with valid names and those without. (A third category is the "semi-valid" category: leading digit or capital letters.) So, do I have the "guts" of the regex correctly stated (which will have a leading "^" and trailing "$" added when implemented)?
Technical Details
Message-ID:
<g40tb4$72d$1@snarked.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mailReferences:
<g3sqvk$8eh$1@snarked.org> <g3u5cn$5qt$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <g40tb4$72d$1@snarked.org> Subject: Re: Cleanfeed - Any rules for invalid group names? Date: Thu, 26 Jun 2008 13:14:28 -0700 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <g3sqvk$8eh$1@snarked.org> <g3u5cn$5qt$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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!news.kjsl.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 49 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-118-49-180.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1214511268 7245 71.118.49.180 (26 Jun 2008 20:14:28 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Thu, 26 Jun 2008 20:14:28 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1478