🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Keith Thu, 29 Apr 2010 05:48
[PAN] [SLRN] Scoring with regex.
#240599
Author: Keith
Date: Thu, 29 Apr 2010 05:48
26 lines
1618 bytes
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?

TIA, Keith

-- 
Obama is the latest version of 21st
century mass mind control. ~Alex Jones ;-)
 
Re: [PAN] [SLRN] Scoring with regex.
#240602
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads