🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #129174

Re: Xnews Scoring Problem

#129174
From: Tech Zero
Date: Tue, 22 Jul 2003 01:32
65 lines
3310 bytes
The voice of "#MK" drifted in on the cyber-winds, 
from the sea of virtual chaos...

> Hi! I would greatly appreciate some help. I have downloaded XNEWS,
> and inserted the following rule into the score file.
 <snip>
> Could someone please just check over the aforementioned scoring
> rule and offer assistance?


Like the other have said, "[]" is for singler charictor refrences
within a score value. As in "f[aoe]t" which will catch "fat", "fot",
and "fet" (It's in the help docs).

Now since Xnews scoring isn't case sensitive you don't need double
testing, as in "(X|x)" or "[Xx]". These simplifies things to:

    Score: -9999
	~Subject: xnews

Now, occasionally there are a few variations of Xnews tag, such as 
"X-News" & "X News". To account for this you can add a wildcard with 
a conditional, like so:

    Score: -9999
	~Subject: x\W?news

"\W" is the wildcard for any non-letter character, and the "?" say it 
doesn't have to be there to match. Unfortunately it's still not perfect, 
it still catches "Linux newsreader" Which makes perfect sense...

  linuX NEWSreader

Se we go back to the help pages and find the next useful thing, the 
word boundary marker "\b". Simply put, any character before or after 
this marker can't be another character. Conversely "\B" is it's 
opposite, where any character on ether side of it must be a letter. 

So our complete score entry is:

    Score: -9999
	~Subject: \bx\W?news

Of course, were would we be without hacks... Errr, "Power Tweekers" like 
myself. So just so you know here's the nasty score entries I use to 
catch almost every Xnews related post, even with out the tag: 

  [^news\.software\.readers$]
    % Topic Filters...
    Score:: -1000
	Subject: 40tude|Newsplex|XanaNews
	~Subject: Luu.Tran|\bx\W?news|XHDR|archive|filter|folder|help|prob|quest|queue|regex|scor|thank
    Score: -1000
	Subject: agent|dialg?og|Gravity|Hamster|slrn
	~Subject: \bx\W?news

I use "OnLoaded=acvShowGe0Score" in my groups.ini, so any post with a 
score less then zero is autmaticaly hidden...

-- 
The Reverend Tech Zero (AKA: Maxwell Pollare)
First Baptist Church of X-News, may Delphi v7 save your soul...

* http://www.slyck.com/xnews.html  http://www.seegras.de/xnews     *
* http://www.geocities.com/d4vidb/ http://xnews.newsguy.com/sizer/ *
Technical Details
Message-ID: <Xns93BFC6DEDD7BCInsomniac@news.individual.net>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!ecngs!feeder.ecngs.de!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!209.89.216.177!not-for-mail
References: <Xns93C06E1D2BCBnahknishom@193.38.113.46>

Show Full Headers
Complete Article Headers
Message-ID: <Xns93BFC6DEDD7BCInsomniac@news.individual.net>
Subject: Re: Xnews Scoring Problem
Date: Tue, 22 Jul 2003 01:32:57 +0000
From: Tech Zero <nowhere@dragonfur.ca>
References: <Xns93C06E1D2BCBnahknishom@193.38.113.46>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!ecngs!feeder.ecngs.de!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!209.89.216.177!not-for-mail
Newsgroups: news.software.readers
Lines: 65
Reply-To: techzero@dragonfur.ca
NNTP-Posting-Host: 209.89.216.177
X-Trace: news.uni-berlin.de 1058837577 15878854 209.89.216.177 (16 [139626])
User-Agent: Xnews/06.07.17