🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #219091

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

#219091
From: VanguardLH
Date: Fri, 11 Apr 2008 07:37
48 lines
3055 bytes
Trying to figure out in 40tude Dialog how to define a scoring filter
that will behave like a rule defined in Outlook Express.  In OE, the
rule is:

Apply this rule after the message arrives
Where the Subject line does not contain 'a' or 'e' or 'i' or 'o' or 'u' 
Delete it 
    and Stop processing more rules 


So if the Subject doesn't have one, or more, vowels then the post gets
deleted.  For Dialog in a scoring rule, I first thought of:

    !delete Subject [^aAeEiIoOuU]

but that doesn't test if there is a vowel in the Subject but rather if
one of the non-vowel characters is in the Subject.  A Subject of
"Keeper" would match because 'K', 'p', and 'r' are in the Subject and
each is in the list returned by the regular expression, so the result is
that this post gets deleted despite that it has the 'e' vowel in its
Subject.

I next thought of:

    !delete Subject ^[aAeEiIoOuU] 

but that probably means to look for any vowel to be at the start of the
string in the Subject header.  A post with Subject "Acknowledged" would
get deleted because it starts with a vowel.

What I want is to delete the post only if the Subject is devoid of any
vowel character.  If there was a nodelete action, the filter would've
simply been:

    !nodelete Subject [aAeEiIoOuU]

so only posts with a vowel in the Subject are not deleted.  Any ideas on
a regular express that will work?


On a side note, I'm thinking the following might work to fire on a blank
Subject header:

!delete Subject [^a-z|^A-Z|^0-9]

since I consider a string of all punctuation characters to be the same
as a blank string; i.e., a string is considered effectively blank if it
contains no alphanumeric characters.
Technical Details
Message-ID: <ftn4ge$8nj$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!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <ftn4ge$8nj$1@registered.motzarella.org>
Subject: 40tude Dialog (regex query): How to test for no vowels in Subject?
Date: Fri, 11 Apr 2008 02:37:52 -0500
From: VanguardLH <V@nguard.LH>
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!t-online.de!feeder.news-service.com!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 48
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX18RO2JcDWg093U2WPGURPNOWbRyOnIIU34eUp8SCnCTemLED8hizIYfJRZ9bnuEkuC1va9A3r5YLKiaUuyqnuceJeDHdOyfBjtojk48vajOmnwik8OOV2OZp8JDx08gxNyhANqSqWPXtQ==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Fri, 11 Apr 2008 07:37:50 +0000 (UTC)
Keywords: VanguardLH
X-Auth-Sender: U2FsdGVkX1/7tdkUBm0V8v/kZRgDHyEAF/HfPbiYJ2S74g2Q+8TybQ==
Cancel-Lock: sha1:qfJXufuOJw/KDuZSjX+N6mX31tk=
User-Agent: 40tude_Dialog/2.0.15.1