🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240602

Re: [PAN] [SLRN] Scoring with regex.

#240602
From: Mike Dee
Date: Thu, 29 Apr 2010 07:50
40 lines
2347 bytes
Keith <kilowattradio@use-reply-to.invalid> wrote:

> 
> I need to filter a subject line with two colons:
> 
> Subject: j*ws: are bastards I told you so: blah blah blah
> 
> and not filter re:
> 
> Score:: =-9999
> subject: [a-d]:
> subject: [f-z0-9]:
> 
> works but causes false positives.
> I have also tried
> 
> Score:: =-9999
> subject: [a-d]:.*:.*
> subject: [f-z0-9]:.*:.*
> but it misses 
> Is there a better way to accomplish this task for SLRN and PAN?

Score: =-9999
 Subject: jews?
 ~Subject: ^Re:

Note the single colon after "Score:" used here and the "~" before the 
last header (kills any post with the words jews in the subject but not 
a post beginning "Re:").

If these posts always contain the word "jews", then you don't need to 
score on the colons. Otherwise, if the terms and words change and don't 
contain anything specific yet always have the two colons then try:

Score: =-9999
 Subject: :.*:
 ~Subject: ^Re:

-- 
dee
Technical Details
Message-ID: <Xns9D69B581D3A05emteedee@188.40.43.213>
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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!eternal-september.org!.POSTED!not-for-mail
References: <hrb6jo026vd@news3.newsguy.com>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9D69B581D3A05emteedee@188.40.43.213>
Subject: Re: [PAN] [SLRN] Scoring with regex.
Date: Thu, 29 Apr 2010 07:50:46 +0000
From: Mike Dee <mikedee@emteedee.invalid>
References: <hrb6jo026vd@news3.newsguy.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.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 40
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 29 Apr 2010 07:50:46 +0000 (UTC)
Injection-Info: mx02.eternal-september.org;
 posting-host="uo11Att60qndkOA5SYvUZw";
 logging-data="14519"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX19phb+gmF6+TWF+g+z/KBON"
User-Agent: Xnews/2006.08.24
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J; N5/yst7]cQb.o^L$oAhs-J!C
 AOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
 z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
Cancel-Lock: sha1:GIWyIOGOJfzbrpwbsKhbPz2L+Mw=
X-Original-Bytes: 2130