🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #117381

Re: Total cretin needs help with scoring in Xnews

#117381
From: Ted S.
Date: Sun, 05 Jan 2003 16:09
87 lines
3777 bytes
Somebody claiming to be "Gnube" <donotspam@dsl.pipex.com> wrote in
news:pan.2003.01.05.02.53.33.516638@dsl.pipex.com: 

> 
> Suppose I wanted to kill all posts with the word "hamburger" in the
> title. But I also wanted to read posts with the word cheeseburger" in
> the title. 
> 
> What the blazes can I do to make that happen.

It depends on what you want to do.  If you only want to kill posts with 
the word "hamburger" in the title, then what somebody else proposed should 
do the trick:

Score:: -9999
     Subject: hamburger

If, however, you want to kill posts with the word "hamburger" in the title 
only if they do not also contain the word "cheeseburger" in the title, 
then I believe you'd need the following [warning: I haven't tested it!]:

Score: -9999
     Subject: hamburger
    ~Subject: cheeseburger

> I don't understand anything I have read so far on this, and there's
> been way too much reading and not enough understanding going on.
> 
> I can generally pick things up when they are in clear plain and
> unambigous english, but anything else seems to fail to do the trick.
> 
> I only have a reading age of about 46, so please keep it simple if you
> can help. ;O)

Well, I'll try to explain the above in clear English as best I can, 
although I'm not the best of teachers myself.  :-)

In the score file, the double colon after the word score means OR.  What 
that means is, if you give a whole bunch of conditions, the score will be 
applied if ANY ONE (or more) of the conditions is met

ex.

Score:: 9999
     Subject: Xnews
     From: fedya

This will score all posts with Xnews in the title with 9999, and will also 
score posts from me at 9999.

Score: 9999
     Subject: Xnews
     From: fedya

This will only score posts at 9999 if they are from me AND contain the 
word Xnews in the subject.

The tilde (~) before a header means NOT.  So, if you want to kill posts 
that do NOT contain the word Xnews, you could use something like:

Score:: -9999
     ~Subject: Xnews

(although because some people can't spell Xnews properly, you'd miss some 
posts you might otherwise want to read)

And in an earlier example

Score: -9999
     Subject: hamburger
    ~Subject: cheeseburger

this will kill posts IF the subject contains "hamburger" AND the subject 
DOES NOT contain "cheeseburger".


I hope this helps.  The score file is based on Perl regexes, so for more 
complicated scoring, you may eventually need to go to the Perl groups to 
figure out what the heck is going on (except that they probably won't 
speak to you in clear English ;-)

-- 
Ted S.: change .spam to .net to reply by e-mail
In future, I'd like my bribes in a nondescript briefcase instead of this 
sack with a dollar sign on it.
--Diamond Joe Quimby  <http://www.snpp.com/episodes/AABF05.html>
Technical Details
Message-ID: <Xns92FA6CE79F97C8jUwe9053kODf78sfkj0@127.0.0.1>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!gestalt.direcpc.com!telocity-west!DIRECTV!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <pan.2003.01.05.02.53.33.516638@dsl.pipex.com>

Show Full Headers
Complete Article Headers
Message-ID: <Xns92FA6CE79F97C8jUwe9053kODf78sfkj0@127.0.0.1>
Subject: Re: Total cretin needs help with scoring in Xnews
Date: Sun, 05 Jan 2003 16:09:46 -0000
From: "Ted S." <fedya@bestweb.spam>
References: <pan.2003.01.05.02.53.33.516638@dsl.pipex.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!gestalt.direcpc.com!telocity-west!DIRECTV!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Your Company
X-Posting-Agent: Hamster/1.3.22.0
User-Agent: Xnews/4.06.22
X-Complaints-To: abuse@supernews.com
Lines: 86