Article View: news.software.nntp
Article #79141Cleanfeed - Any rules for invalid group names?
From: D. Stussy
Date: Wed, 25 Jun 2008 07:09
Date: Wed, 25 Jun 2008 07:09
31 lines
2457 bytes
2457 bytes
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_+])*
I don't like having a dash ("-") or an underscore ("_") as the last
character, but isc.org's page says that's valid. There are programming
groups that end with plus ("+"), so those should be accepted. I think this
also properly kills any double or multiple dot values (i.e. any string that
has two or more consecutive periods). Except for groups that use [A-Z],
will this reject any valid group? Is that a regex format acceptable to
perl?
I note that there are things that it won't check for:
- A fully numeric name component.
- The length requirement of any component.
- The number of components.
- Invalid components such as "all" or "ctl".
...But it's not meant 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).
Technical Details
Message-ID:
<g3sqvk$8eh$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!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <g3sqvk$8eh$1@snarked.org> Subject: Cleanfeed - Any rules for invalid group names? Date: Wed, 25 Jun 2008 00:09:39 -0700 From: "D. Stussy" <spam@bde-arc.ampr.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!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 31 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 1214377780 8657 71.118.49.180 (25 Jun 2008 07:09:40 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Wed, 25 Jun 2008 07:09:40 +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