🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #172444

Re: [New Slrn/Slrnpull] Scoring

#172444
From: Alan Connor
Date: Tue, 30 Aug 2005 19:51
124 lines
5561 bytes
On news.software.readers, in <slrndh9356.1c8.rudy@142.39.20.3>,
"R/T" wrote:

> 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.

I'm a sed guy :-)

>
> 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.

Good.

>  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
>

I score for direct replies only, the script looking for
my MIDs in the last position in the References header, but
the above is adaptable:

      References: your_username@your_postng_host>$

Or close to that. I'll figure it out.

> 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

Excellent! Not sure Earthlink will let me generate my own MIDs,
but I'll try.

That looks to be much less expensive scoring than the way I
do it now, and automatically expiring scores would be handy
indeed.

Blinky mentioned this method of scoring replies a while back,
but is sure is nice to have a complete tutorial.

Thanks a bunch, Rudy. I'll put this in my slrn docs.

AC


-- 
Perl: In their efforts to avoid learning C, the yuppies have
created a monstrosity that is much more difficult to learn
and far more limited. There are 145 perl newsgroups and 1 C
newsgroup...But the vast majority of software is in a C variant.
Technical Details
Message-ID: <vN2Re.3605$Wd7.684@newsread1.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!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!65807237!not-for-mail
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> <slrndh9356.1c8.rudy@142.39.20.3>

Show Full Headers
Complete Article Headers
Message-ID: <vN2Re.3605$Wd7.684@newsread1.news.pas.earthlink.net>
Subject: Re: [New Slrn/Slrnpull] Scoring
Date: Tue, 30 Aug 2005 19:51:55 GMT
From: Alan Connor <zzzzzz@xxx.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> <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!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!65807237!not-for-mail
Newsgroups: news.software.readers
User-Agent: slrn/0.9.8.1 (Debian)
Lines: 124
NNTP-Posting-Host: 4.243.4.91
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread1.news.pas.earthlink.net 1125431515 4.243.4.91 (Tue,
NNTP-Posting-Date: Tue, 30 Aug 2005 12:51:55 PDT
Organization: EarthLink Inc. -- http://www.EarthLink.net