Article View: news.software.readers
Article #172437Re: [New Slrn/Slrnpull] Scoring
From: R/T
Date: Tue, 30 Aug 2005 17:00
Date: Tue, 30 Aug 2005 17:00
84 lines
4631 bytes
4631 bytes
Hi Alan,
> >> What's the "one-key score" macro? I did a grep -ir "one[-
> >> ]key" . in my slrn docs directory and couldn't find it.
> >
> > You can get it from slrn.org, along with cleanscore, a Perl
> > script you will also need.
>
> I don't do perl. Why install that monstrous program and all of
> its dependencies when the same job can be done with a shell
> script or a C program, the latter much more efficiently than
> perl. And I _have_ to have a shell and a C compiler.
cleanscore is a pretty simple script that parses your score file and
deletes expired entries. It would be pretty simple to write that as
a bash script, or cooler yet, an awk script.
Let me backtrack a bit. When using the onekey score macro, you can
set an expiry time for your ignored threads, based on the assumption
that they will soon die. I use 14 days.
> > With the onekey-score macro,
> > you hit one key to ignore or watch a thread, and all it's
> > followups, which works in both header display mode and the
> > article pager.
>
> I can do that without perl.
The onekey-score macro is an slrn SLang macro, not perl. Only the
cleanscore script is perl.
> >> Note: I have a line in my slrn score file that sources another
> >> file with scores: "include score-response". Slrpull doesn't
> >> like it, so I use this simple wrapper script for slrnpull:
> >
> > Why bother? Why not just have one file like I do? I have my
> > base score rules, along with the transients for watched/ignored
> > threads all in the same file, and let cleanscore manage the
> > expiries.
>
> That file contains the Message-ID's of my posts so that any
> replies to them can be uniquely scored. All in the same recipe
> (Score::).
Now I understand. Why not just score on the unique parts of your
Message-ID and write a generic score entry like this:
% Flag my posts (this catches posts that have no References header)
Score: =9999
From: Your Name
% Flag replies to my stuff
Score: =9999
References: your_username@your_postng_host
and do this in your .slrnrc:
set username "your_username"
% Decide whether or not you want slrn to generate Message-IDs
set generate_message_id 1
% The hostname specified in this command will be used to
% generate Message-IDs. Please note that it is usually
% not necessary to set this manually, as slrn uses the
% fully-qualified domain name of the machine it is running on
% for this task, which is often the correct solution
posting_host your_posting_host
using the above recipe, slrn scores all my posts and replies as 9999.
> I could re-write the shell script that finds the Message-IDs,
> parses them out and prints them to that file (sr.bsh.gz on my
> website) but why bother? The little ed scripts you deleted above
> take a fraction of a second to execute. They aren't a problem.
I agree that your scripts are not a problem ... my point is that
there may be another way to achieve the same outcome. I'm just
presenting a scriptless alternative that works for me, and hopefully
might benefit others.
Cheers!
R/T
Technical Details
Message-ID:
<slrndh9356.1c8.rudy@142.39.20.3>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!atl-c02.usenetserver.com!news.usenetserver.com!atl-c04.usenetserver.com!news.usenetserver.com!wesley.videotron.net!news.cae.ca!news2.cae.ca!not-for-mailReferences:
<%LhPe.1932$z2.1345@newsread3.news.pas.earthlink.net> <slrndgrqmj.1bg.rudy@142.39.20.3> <1TpPe.2187$z2.1411@newsread3.news.pas.earthlink.net> <slrndh6v4l.1cc.rudy@142.39.20.3> <mBLQe.2041$4P5.1522@newsread2.news.pas.earthlink.net>Show Full Headers
Complete Article Headers
Message-ID: <slrndh9356.1c8.rudy@142.39.20.3>
Subject: Re: [New Slrn/Slrnpull] Scoring
Date: Tue, 30 Aug 2005 17:00:09 +0000
From: R/T <rudy@this.address.is.invalid>
References: <%LhPe.1932$z2.1345@newsread3.news.pas.earthlink.net> <slrndgrqmj.1bg.rudy@142.39.20.3> <1TpPe.2187$z2.1411@newsread3.news.pas.earthlink.net> <slrndh6v4l.1cc.rudy@142.39.20.3> <mBLQe.2041$4P5.1522@newsread2.news.pas.earthlink.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!atl-c02.usenetserver.com!news.usenetserver.com!atl-c04.usenetserver.com!news.usenetserver.com!wesley.videotron.net!news.cae.ca!news2.cae.ca!not-for-mail
Newsgroups: news.software.readers
Organization: CAE
Lines: 84
NNTP-Posting-Host: l1078.cae.ca
X-Trace: news2.cae.com 1125421209 16274 142.39.122.95 (30 Aug 2005 17:00:09
GMT)
X-Complaints-To: usenet@news2.cae.ca
NNTP-Posting-Date: Tue, 30 Aug 2005 17:00:09 +0000 (UTC)
X-Face: (WrD*bX*:"j.$(|G/9Wky*T3hTx&09g_~|H3=5[WK$o8oQHIuw0@'Z.-{uz+O{/OQ<:yDquEpI!LJG_jn#a+=drl'V:8{a\WI*iSDIU9xV`bHsN+[y_P1QN-,=fTY4dP:5*z8G?;
=v(*g0As)Xc^t6p#OO6d05Tg/}i,).V-O; |[PH/T9*bcANx/A>m)cVi_Y
X-Files: The truth is out there
User-Agent: slrn/0.9.8.1pl1/rt (CYGWIN_NT-5.0)