🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #184696

Re: [SLRN] Favorite scorefile entries, was Re: X-Privat, was...

#184696
From: Troy Piggins
Date: Wed, 10 May 2006 12:05
54 lines
3615 bytes
* Alan Connor wrote:
> On news.software.readers, "Michael DeBusk" wrote:
>
> Read your other, concurrent, article. Excellent. I'm sure you are
> right about how slrn deals with the "Lines:" header.
>
> You wouldn't have to add a Lines header with a macro/script. Any
> header would do:
>
> X-Troll: yes
>
> Procmail is very useful for post-download filtering, by-the-way.
>
> You have to use formail or sed to remove the From Date header
> (Not "From:") before sending them back to your local
> cache. Otherwise it is just like filtering mail. Egrep instead
> of slrn's weird regexes.

G'day again Alan.  I've been trying to get this working in a script but
keep stalling on its development.

What I want is a way to parse all downloaded articles through procmail
just after slrnpull fetches them.  You got something along those lines
working?

[snip]
> [*]
> Score:: -600 %my killscore is -500
> Xref: advocacy
> Xref: microsoft  % I don't subscribe to any
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
Be careful of this one.  I once had comments in the middle of
scoring rules and it fouled up the next few rules.  IIRC the only
comment within a score rule should be the one on the same line as Score
which is the comment you see when you hit 'v' (by default) to see what
score rules are applying to a particular article.

[snip]
> Do you have _any_ idea how to score for non-us-ascii characters
> in the headers, Michael?

I don't do it so no idea if this would work, but what about something
along the lines of:

Score: -9999
Subject: [^a-zA-Z0-9,.:-]+

Not sure how advanced REs are for s-lang, but the idea was to grep for
Subject (or your header of choice) for characters /not/ in the range you
want.

-- 
Troy Piggins                                RLU#415538 <http://counter.li.org>
My dogma just ran over my karma 
Technical Details
Message-ID: <20060510215148@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: <f1Y5g.3076$Vn.665@newsread4.news.pas.earthlink.net> <Xns97B9D5E2804216106emteedee@217.22.228.20> <Xns97B9E4FE3D54emteedee@148.160.160.156> <slrne5jda9.2th.i3x9mdw@b29x3m.invalid> <Xns97B9D8EBBC06DMTEyMDM1ODE0NDo6MjA3@195.13.230.46> <slrne5nm67.2a1.i3x9mdw@b29x3m.invalid> <w3X6g.5965$DT5.688@newsread3.news.pas.earthlink.net> <slrne5okdm.13a.i3x9mdw@b29x3m.invalid> <V_47g.4428$Vn.2594@newsread4.news.pas.earthlink.net> <slrne5qeld.1eu.i3x9mdw@b29x3m.invalid> <rGh7g.230$t32.84@newsread2.news.pas.earthlink.net> <slrne5rbq5.1ju.i3x9mdw@b29x3m.invalid> <jgW7g.400$y4.144@newsread2.news.pas.earthlink.net> <slrne61dtv.144.i3x9mdw@b29x3m.invalid> <slrne61eff.16n.i3x9mdw@b29x3m.invalid> <9198g.637$y4.556@newsread2.news.pas.earthlink.net> <slrne632no.3ha.i3x9mdw@b29x3m.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <20060510215148@usenet.piggo.com>
Subject: Re: [SLRN] Favorite scorefile entries, was Re: X-Privat, was...
Date: Wed, 10 May 2006 12:05:57 +0000
From: Troy Piggins <usenet-0605@piggo.com>
References: <f1Y5g.3076$Vn.665@newsread4.news.pas.earthlink.net> <Xns97B9D5E2804216106emteedee@217.22.228.20> <Xns97B9E4FE3D54emteedee@148.160.160.156> <slrne5jda9.2th.i3x9mdw@b29x3m.invalid> <Xns97B9D8EBBC06DMTEyMDM1ODE0NDo6MjA3@195.13.230.46> <slrne5nm67.2a1.i3x9mdw@b29x3m.invalid> <w3X6g.5965$DT5.688@newsread3.news.pas.earthlink.net> <slrne5okdm.13a.i3x9mdw@b29x3m.invalid> <V_47g.4428$Vn.2594@newsread4.news.pas.earthlink.net> <slrne5qeld.1eu.i3x9mdw@b29x3m.invalid> <rGh7g.230$t32.84@newsread2.news.pas.earthlink.net> <slrne5rbq5.1ju.i3x9mdw@b29x3m.invalid> <jgW7g.400$y4.144@newsread2.news.pas.earthlink.net> <slrne61dtv.144.i3x9mdw@b29x3m.invalid> <slrne61eff.16n.i3x9mdw@b29x3m.invalid> <9198g.637$y4.556@newsread2.news.pas.earthlink.net> <slrne632no.3ha.i3x9mdw@b29x3m.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!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-0605@piggo.com
User-Agent: slrn/0.9.8.1/rt (Linux)
Lines: 54
NNTP-Posting-Host: 203.206.74.180
X-Trace: 1147262757 per-qv1-newsreader-01.iinet.net.au 16037 203.206.74.180