🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #226302

Re: Making XNews filters persist?

#226302
From: Mike Dee
Date: Thu, 25 Sep 2008 02:24
48 lines
3783 bytes
On Wed, 24 Sep 2008 18:52:12 +0000, Bluuuue Rajah wrote:

> Blinky the Shark <no.spam@box.invalid> wrote: 
>> 
>> Just for the record, you're aware of the score file, right?
> 
> The problem with the score file is that you can only score one thread at 
> a time.  Until the election is past, I'm trying to eliminate all 
> political threads.  There are a lot of them, and it is very laborious to 
> eliminate them one at a time.
> 
> So far, I'm just recalling past filters from the list, marking 
> everything read and discarding them.  From other posts, I gather that's 
> the best way to do it with XNews.  :(

Are you sure about that?

Use pipes "|" in the score file to your advantage. And by "score file" I
mean the one you edit by hand, "score.ini", opened via the Special menu
in Xnews.

Here's an anti-politics-spam filter that I use under in Xnews that you're
welcome to try.

%%----------------------------

[.]

Score:: -9999
   % [OT] religious or socio-political subjects follow:
   Subject: \ballah\b|amish|atheism|bible|china|chinese|\bchrist( |ian)|\bgod\b|\bhell|islam
   Subject: \bholy\b|\bracis|\btrail.*trash|india|jehov|jesus|m(a|o|u)h(a|o)mm?|muslim|\bsuni
   Subject: Alhadin|Hamid|Saad|Hakeem|Islam|Moammar|Waleed|Rasheed|Ibrahim|Hussein|Abdullah|Feyd
   Subject: Osama|Khalid|Shah|Hakim|Mo?usta(ph|f)a|Imran|Abdel|Ibraheem|Iman|Abduljalil|Rashid
   Subject: Ayaz|Latif|Ahmed|Masood|brahimi
   Subject: terrori|nazi|ill?egal.*aliens?|presiden|\bwar\b|troll( |s|i)|fbi
   Subject: \bUS Elect|liberal( |s|ism)|\bpoliti|\bdemocra|\bbush\b|repub(s?|lic)

%%----------------------------

If any new OT terms get through the above filter its easy to add to it
using pipes, and you can have as many lines as required, for example,
a possible new line could go something like:
   Subject: Palin|Hillary|Barrack|McCain

-- 
dee
Technical Details
Message-ID: <pan.2008.09.25.02.24.14.3854@emteedee.invalid>
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.ams.giganews.com!nntp.giganews.com!uio.no!hist.no!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
References: <Xns9B215C6E862E6lkajehoriuasldfjknak@207.115.33.102> <pan.2008.09.22.16.56.53.96598@thurston.blinkynet.net> <Xns9B239749D85DBlkajehoriuasldfjknak@207.115.33.102>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2008.09.25.02.24.14.3854@emteedee.invalid>
Subject: Re: Making XNews filters persist?
Date: Thu, 25 Sep 2008 12:24:20 +1000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns9B215C6E862E6lkajehoriuasldfjknak@207.115.33.102> <pan.2008.09.22.16.56.53.96598@thurston.blinkynet.net> <Xns9B239749D85DBlkajehoriuasldfjknak@207.115.33.102>
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.ams.giganews.com!nntp.giganews.com!uio.no!hist.no!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Organization: Poor Boy
User-Agent: Pan/0.14.2.91 (Linux host, Mac OS, X-server)
Newsgroups: news.software.readers
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
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUAAAA1eFXgkmf71L/7
 7qX////6Pj40AAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH1wMdBh4ZkpuYCAAAAPlJREFU
 eNqV0s2RwyAMBeAXQ+5xB4wq8AwNcHABuWz/rQRJ/AhssrtcPKPPegJjnIuF+vQrwC/QOidIK8AM
 6Qv4W0ADXADaeAO56RZijAeu4GIsMoHU47XDdfAWUlyAjHY6YwKXa+4KZYTsy0JyHFPFQjQdIxxo
 NESh1ccDJmeyzvsZX8D/CWBkAPkedV+LqBl6WPlYBdCOeFiAhdABBg4EvXiGLcj16QQivd8MiaHW
 N6JQARTaIXK9w8bdZQDxkiEKpP8uB00Q8JPXW+qahTPJS69nBk2SlgzS8DBJFrA/e5JkeSTe+WO3
 SdySgd/YGd4b9ZYBaIB/rw/aM8iUyl6QnQAAAABJRU5ErkJggg==
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 48
NNTP-Posting-Host: 59.167.234.168
X-Trace: news.sunsite.dk
 DXC=cVm7c?87MNK3j@n`X75YjCYSB=nbEKnkKV`^KZl[Dm9L<=oMM65BOiG@BYT9PbFRKOfdb<Ea4]l0@0_eS6;
 Q@HXO6EP?3G; NPeO^ZoM[j9NHlA
X-Complaints-To: staff@sunsite.dk