🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #219187

Re: 40tude Dialog (regex query): How to test for no vowels in Subject?

#219187
From: VanguardLH
Date: Sun, 13 Apr 2008 07:18
44 lines
3533 bytes
Bernd Rose wrote:

> !delete Subject {(^Re:|^)[^aeiou]*$}
> 
> Replace the asterisk by a plus-sign, if you want to keep posts with
> empty subject. As Dialog defaults to case-insensitive matching, you
> shouldn't need to include the upper-case letters in above string.

Well, that regular expression seems to work.  I sent a post with just
constonants and punctuation characters to the alt.test group.  I created
the above filter for scoring but it didn't work.  Then I created a
filter that set colors on any post that had "bxrt" (a substring in the
post that did show up in alt.test) and commented out the !delete line
but the post didn't get colored (red on black).

Problem came down to the group specifier.  I didn't want to test the
unknown filter on my regular groups, just the alt.test group where I
posted the message with the non-vowel Subject header.  To limit the
filter to just this group, I used:

[*.test]
!delete Subject {(^Re:|^)[^aeiou]*$}

I wanted the filter only to work in *.test groups, not in a group that
had "test" somewhere else in its name, like perhaps "*.betatest".  I
then changed to:

[alt.test]
!delete Subject {(^Re:|^)[^aeiou]*$}

And that worked.  The coloring filter worked so I removed it and
uncommented the delete filter.  When I reran the scoring, the test post
got deleted.  So I verified that the regular expression did indeed work.

Now I have to figure why I need to specify an actual group name in full.
Do I need to use regular expressions in the group specifier, too, like
maybe "[*\.test]" (where I escape the period character)?  If that were
true, how come the asterisk works by itself instead of having to use
".*" to mean 0 or more of any character (which would probably be ".+"
since no group would have zero characters in its name)?  Maybe I just
can't get complicated with the group names and am stuck with only what
the help shows for examples, which means I have to use the full group
name to include it or "-string" to omit some group that has that string
anywhere in its name.
Technical Details
Message-ID: <ftsc3d$tju$1@registered.motzarella.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!not-for-mail
References: <ftn4ge$8nj$1@registered.motzarella.org> <1hws4gmk66bug$.dlg@b.rose.tmpbox.news.arcor.de>

Show Full Headers
Complete Article Headers
Message-ID: <ftsc3d$tju$1@registered.motzarella.org>
Subject: Re: 40tude Dialog (regex query): How to test for no vowels in Subject?
Date: Sun, 13 Apr 2008 02:18:13 -0500
From: VanguardLH <V@nguard.LH>
References: <ftn4ge$8nj$1@registered.motzarella.org> <1hws4gmk66bug$.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 44
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX1+6Tng+BqlIinq+K5sYDTKQTHRiufRl5W/KotJ0QqkZwoAU36EVcrZqR7KgnNp5Ojtoxk9uQlDK5HAtqcMLEfHcXx6/wICYJAbmDUcsQxIEnWCjxRq8pHfQPVUYb1MJIJbKEFe2jvAH4A==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Sun, 13 Apr 2008 07:18:05 +0000 (UTC)
Keywords: VanguardLH
X-Auth-Sender: U2FsdGVkX1+WeGTMH1FHOy9/5yK6sbBrywMbc4y8pHOnDymEM75GVg==
Cancel-Lock: sha1:nalhJLmTjGGqihlJoBzexEi/L3Y=
User-Agent: 40tude_Dialog/2.0.15.1