🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #175382

Re: [xnews|pan|slrn] Nested Scoring

#175382
From: Troy Piggins
Date: Sun, 23 Oct 2005 04:18
60 lines
2499 bytes
* PJR wrote:
> On 22 Oct 2005 23:08:09 GMT, Blinky the Shark <no.spam@box.invalid>
> wrote in news.software.readers:
>
>> I can't for the life of me Google up anything on the syntax for 
>> nested scoring, e.g.:
>>
>> Score (or)   nnnn
>>
>>    this and this
>>
>>    this and this
>>
>> How the hell do you nest ors in ands and vice versa?  I've done it 
>> but it was years ago and I can't find any examples locally or 
>> online.
>
> An slrn example:
>
> Score: nnn
> 	From: Blinky
> 	{::
> 		X-Foo: bar		% condition 1
> 		{:
> 			X-Bar: foo	% condition 2
> 			X-Bar: bar	% condition 3
> 		}
> 	}
>
> This ought to score posts from Blinky if either condition 1 or both
> conditions 2 and 3 are met. Swapping the colons around would have a
> different effect.

That's the way I understand it.  From the slrn docs score.txt:

Score: -50 % capitals only
{::
  ~Subject: \c[0-9a-z]
  {:
    Subject: ^Re:
    ~Subject: ^Re:.*\c[a-z]
  }
}
{:
  ~Subject: \c\<PING\>
}

which is either the Subject has no smalls or numbers, or it does but
they're only in the Re: part of the Subject.  I added the additional
PING "and" condition (and some others I didn't post here) because
sometimes people post these Subjects to get attention of person they're
pinging etc.

> I don't know if it works in XNews. I'm told that it doesn't work in
> Pan but haven't tested it.

-- 
Troy Piggins
Where I live: 27 27 44 S 153 02 28 E
http://earth.google.com
Technical Details
Message-ID: <20051023141048@usenet.piggo.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
References: <Xns96F7A3EAC43A7bnooz@130.133.1.4> <slrndllivc.ptv.pjr@nntp.petitmorte.net>

Show Full Headers
Complete Article Headers
Message-ID: <20051023141048@usenet.piggo.com>
Subject: Re: [xnews|pan|slrn] Nested Scoring
Date: Sun, 23 Oct 2005 04:18:18 +0000
From: Troy Piggins <usenet-0510@piggo.com>
References: <Xns96F7A3EAC43A7bnooz@130.133.1.4> <slrndllivc.ptv.pjr@nntp.petitmorte.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
Newsgroups: news.software.readers
Reply-To: usenet-0510@piggo.com
User-Agent: slrn/0.9.8.1/rt (Linux)
Lines: 60
NNTP-Posting-Host: 203.206.14.64
X-Trace: 1130041098 per-qv1-newsreader-01.iinet.net.au 8659 203.206.14.64