🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #200971

Re: slrn Scorefile syntax

#200971
From: Troy Piggins
Date: Wed, 20 Jun 2007 01:22
47 lines
2674 bytes
* andrew is quoted & my replies are inline below :
> Hi,
>
>  I am a little puzzled as to why the following syntax does not work in
> the slrn scorefile:
>
>     [*]    
>
>     Score:: 200
>     From: Peter J Ross <pjr@example.invalid>      % Linux groups  
>     From: andrew <nospam@andrew.invalid>          % Me!
>     From: "Jukka K. Korpela" <jkorpela@cs.tut.fi>  % Html groups 
>
> My thinking was that two colons indicate that the score should be
> awarded if any of the tests re passed (logical OR. But it fails :- )

Correct.

Couple of points here, although it's probably the first causing
trouble.

Don't put comments on same line as your rules, although at the
end of the Score: line is fine - in fact that's how the matching
score is identified when you hit 'v' on a scored post.

Comments on lines by themselves are fine.

Also, the points '.' should be escaped '\.', although your above
rules should still match since an un-escaped '.' will match any
character.

So should read:

[*]
Score:: 200 % nice guys
% Linux groups
From: Peter J Ross <pjr@example\.invalid>
% Me!
From: andrew <nospam@andrew\.invalid>
% Html groups
From: "Jukka K. Korpela" <jkorpela@cs\.tut\.fi>

-- 
Troy Piggins | http://piggo.com/~troy                             
slrn macros and howto:                      ___  |   __   __    ,-O   (o-    O 
http://piggo.com/~troy/slrn                |___  | |/   |/  |  O   )  //\     O
RLU#415538                                  ___| | |    |   |   `-O   V_/_  OOO
Technical Details
Message-ID: <20070620111138@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!border2.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!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: <slrnf7gubn.as6.nospam@andrew.ilium.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <20070620111138@usenet.piggo.com>
Subject: Re: slrn Scorefile syntax
Date: Wed, 20 Jun 2007 11:22:45 +1000
From: Troy Piggins <usenet-0706@piggo.com>
References: <slrnf7gubn.as6.nospam@andrew.ilium.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!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-0706@piggo.com
X-NNTP-Proxy: Leafnode-2
 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/)
User-Agent: slrn/0.9.8.1pl1/rt (Linux)
Lines: 47
NNTP-Posting-Host: 203.206.61.31
X-Trace: 1182302567 per-qv1-newsreader-01.iinet.net.au 22435 203.206.61.31
X-Original-Bytes: 2430