🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #41543

Re: A killfile feature someone should invent

#41543
From: Paul Neubauer
Date: Mon, 15 Jun 1998 00:00
59 lines
2485 bytes
This thread has gotten a little old by now, but just for the sake of any 
Gravity users who might be interested...

In article <6lm59j$dah$1@dolphin.neosoft.com>, conrads@neosoft.com 
writes...
> The correct approach is to filter any subject that *doesn't* contain
> at least one lowercase (alpha) character:
> 
> /^Subject: [^a-z]*$/c:j
> 
> As you mentioned, it's a good idea to include an optional "Re:" as well:
> 
> /^Subject: [Re:]* [^a-z]*$/c:j
> 
> Technically speaking, the "[Re:]*" above does not match *only* "Re:" (it
> actually matches a *set*, meaning any sequence of any of the characters
> between the brackets will match), but it's about the best you can do in
> trn.  If you wanted to be *really* accurate, you would have to code a
> separate filter with the Re: as a literal:
> 
> /^Subject: Re: [^a-z]*$/c:j
> 
> Or possibly even:
> 
> /^Subject: R[eE]: [^a-z]*$/c:j
> 
> to allow for retarded newsreaders who insert "RE:" instead of "Re:".

here's a Gravity version of a rule that would have the appropriate 
effect. 

rule = CAPSLOCK
  enabled = Yes
  allgroups = Yes
begin groups
end groups
begin condition
  Subject contains reg. expr. "<0>(R[eE]: )*[^a-z]*<~0>"
end condition
begin actions
  markAsRead
end actions
end rule

The version above DOES mark as read all and only articles with a Subject 
line beginning with zero or more occurrences of the strings "Re: " or 
"RE: " with no lowercase letters following.  AFAICT, this should be the 
correct effect.  Of course, you can make the rule effective in only a 
subset of your newsgroups if you prefer.  Cut it out of this post and 
import it using the Import button in the rules dialog.

	Paul
-- 
Paul Neubauer          prn@bsu.edu
http://nova.bsuvc.bsu.edu/prn/
PGP Public Key at http://nova.bsuvc.bsu.edu/prn/key.html

Technical Details
Message-ID: <MPG.fef2f3b4a0eeb0f9896aa@news.bsu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <6lfcl2$lcc$1@supernews.com> <6lhf2a$f5p@espresso.cafe.net> <6lm59j$dah$1@dolphin.neosoft.com>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.fef2f3b4a0eeb0f9896aa@news.bsu.edu>
Subject: Re: A killfile feature someone should invent
Date: Mon, 15 Jun 1998 00:00:00 +0000
From: prn@bsu.edu (Paul Neubauer)
References: <6lfcl2$lcc$1@supernews.com> <6lhf2a$f5p@espresso.cafe.net> <6lm59j$dah$1@dolphin.neosoft.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 362909396
Organization: Ball State University
Newsgroups: news.software.readers