🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
15 messages
15 total messages Started by Alan Gutierrez Sat, 22 Feb 2003 19:51
Show me your slrn score file.
#120615
Author: Alan Gutierrez
Date: Sat, 22 Feb 2003 19:51
17 lines
1360 bytes
I am getting started with slrn and would like to see what people are
doing with their scorefiles.

Here are my basic questions:

* Is there an sourcefile archive?
* Is there a command line tool for testing your scorefile?
* Is there a simple way to kill a thread with one stroke?
* Is there a simple way to plonk a poster with one stroke?

Thanks in advance.

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: Show me your slrn score file.
#120617
Author: HoboSong
Date: Sat, 22 Feb 2003 20:49
49 lines
2560 bytes
begin  quoting Alan Gutierrez
> 
> I am getting started with slrn and would like to see what people are
> doing with their scorefiles.
> 
> Here are my basic questions:
> 
> * Is there an sourcefile archive?
> * Is there a command line tool for testing your scorefile?
> * Is there a simple way to kill a thread with one stroke?
> * Is there a simple way to plonk a poster with one stroke?

  since I dont like to answer a bunch of questions when I plonk someone,
  and I dont like a commented score file ... I just wrote a script that
  pulls the From: header and adds it to a list that I build my scorefile
  from. 

  So to plonk someone I just pipe the message through "autoplonk"...
  
  #------------------------------------------------#
  #!/usr/bin/perl
  
  $ScoreFile = "/home/chris/News/Score.plonks";
  
  open SCOREFILE, ">>$ScoreFile"  or die 
  	"Cannot open $ScoreFile for appending: $!";

  while(<>) {
   
    if ( /^From:/ ) {
      print SCOREFILE "\t$_";
    }

  }

  close SCOREFILE;
  #------------------------------------------------#

   
  Then Score.plonks is joined with my other scorefiles whenever I start
  slrn.

-- 
-----------------------------------------------------------------------------
 Chris van Ophuijsen					        RLU #195880
 usenet@gnubin.com
 put "HoboSong" in the subject
-----------------------------------------------------------------------------
Re: Show me your slrn score file.
#120618
Author: wannes
Date: Sat, 22 Feb 2003 20:52
100 lines
3561 bytes
Alan Gutierrez <ajglist@izzy.net> schreef:
> 
> I am getting started with slrn and would like to see what people are
> doing with their scorefiles.
> 
> Here are my basic questions:
> 
> * Is there an sourcefile archive?
> * Is there a command line tool for testing your scorefile?

Dunno

> * Is there a simple way to kill a thread with one stroke?
> * Is there a simple way to plonk a poster with one stroke?

Yes, there ae .sl-macros in order to do that...
Have a look at <http://slrn.sourceforge.net/macros/index.html>

Anyway, here is my scorefile...

% -7000 : auto-mark as read
% +5000 : mark as important

% All groups
[*]
% Posts for me
Score:: +5000
	Subject: wannes
 	References: spam@wannes\.cjb\.net\.invalid>$

% automark these as read
Score:: -7000
        % My own posts
	From: wannes <spam@wannes\.cjb\.net\.invalid>
        % Someone stupid :)
	From: Koen Godderis
 	From: "KG-redactie" <kg-redactie@\*koengodderis\.be>

% Kill al posts from these nl.* trolls when they are crossposting with
% their own group...
Score: -9999
	Newsgroups: alt.madcrew
	{::
	From: Dieter d'Hoker
	From: Berry\, DE Sympathieke UsenetTroll
	From: piepmuis@hotmail\.com
 	From: Judas
	}
	
[comp.editors]
% I'm only intrester in Vim
Score: -9999
	~Subject: vim

[linux.debian]
Score: -9999
 	Subject: unsubscribe

[news.software.readers]
%I'm only intrested in slrn
Score: =-9999
	~Subject: slrn

[pandora*]
% Kill the FAQ, but not the replies to it
Score: -9999
 	Subject: Nieuw op deze groep\? Lees de FAQ (VVV: veel voorkomende vragen)   0008
	From: FAQ Poster <pandorafaq@pebbels.be>
	
Score:: -7000
        % Two stupid people, don't kill but mark as read
	From: "Ghingis Khan" <ghingis\.khan@mail\.co\.kr>
 	From: Gandalf <WizardGandalf@GeenSpamPandora\.be>

% Mark al whining about the "telemeter" as read
Score: -7000
 	Subject: telemeter

[pandora.pub]
% Kill the FAQ
Score: =-9999
 	Subject: \[PUB\] Richtlijnen en tips voor deze nieuwsgroep  0001
	From: Pandora User Base <support@pub\.telenet\.be>

[pandora.test]
% Kill the 'is the newserver still up?"-script from my ISP
Score:: =-9999
	From: test@test.test
% Ans also this script, from someone else
	{:
	Subject: Wil jij ook de snelste hebben\?
 	From: Snelheidstester <snelheidstester@pebbels\.be>
	}
% And also this bozo
 	From: Pieter Huygens <lookinreplyto@phuygens\.be>


-- 
wannes
Re: Show me your slrn score file.
#120633
Author: Andrew Preater
Date: Sun, 23 Feb 2003 02:36
59 lines
2710 bytes
* Alan Gutierrez <ajglist@izzy.net>:
> I am getting started with slrn and would like to see what people are
> doing with their scorefiles.
> 
> * Is there an sourcefile archive?

Not as such, but if you Google around I bet you'll find others have
put theirs on the Web.  Sven Guckes's scorefile might be a good place
to start.

> * Is there a command line tool for testing your scorefile?

I don't think so, but there's `cleanscore' to remove old entries.

> * Is there a simple way to kill a thread with one stroke?
> * Is there a simple way to plonk a poster with one stroke?

Here is a man in need of one-key scoring.  See http://snurl.com/tl7
Here are some examples from my scorefile -- it killed your article,
perhaps you should fix the Message-ID. ;)

[*]
    Score: 500
    From: Andrew Preater % ego-score, everyone needs this.
    Score:: =-1000
    Message-ID: @localhost
    From: nobody@
    From: ^[^ ]+@[^ ]+$
    From: @localhost
    Score:: -9999 % Annoying articles...
    Content-Type: multipart/alternative
    Content-Type: text/html
    Content-Type: multipart/signed
    Content-Transfer-Encoding: base64
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/x-vcard
    From: anonymous
    From: \<Anon\>
    Subject: !!!!
    Subject: ^(no subject)$
    Subject: ^none$
    Subject: ^Untitled$
    Subject: FREE
    Subject: ^\c[^a-z]*$
    Subject: MAKE MONEY
    Subject: \$\$\$

    Score:: -9999
    Subject: microsoft
    Subject: micro\$oft
    X-Newsreader: microsoft

[news.software.readers]
    Score: =-9999
   ~Subject: slrn

-- 
Andrew Preater
Re: Show me your slrn score file.
#120716
Author: Alan Gutierrez
Date: Mon, 24 Feb 2003 07:09
50 lines
2302 bytes
In article <slrnb5gct2.il6.usenet@preater.com>, Andrew Preater wrote:
> * Alan Gutierrez <ajglist@izzy.net>:

>> * Is there an sourcefile archive?
> 
> Not as such, but if you Google around I bet you'll find others have
> put theirs on the Web.  Sven Guckes's scorefile might be a good place
> to start.
> 
>> * Is there a simple way to kill a thread with one stroke?
>> * Is there a simple way to plonk a poster with one stroke?
> 
> Here is a man in need of one-key scoring.  See http://snurl.com/tl7
> Here are some examples from my scorefile -- it killed your article,
> perhaps you should fix the Message-ID. ;)

Here's hoping I did.

> [*]
>     Score: 500
>     From: Andrew Preater % ego-score, everyone needs this.

    Mine is 9999.

>     Score:: =-1000

>     From: ^[^ ]+@[^ ]+$

            ^^ -> alan@izzy 
            No top level domain?

>     Score:: -9999

    Do you really kill everyone who uses outlook?

>     X-Newsreader: microsoft

> [news.software.readers]
>     Score: =-9999
>    ~Subject: slrn

I used a lot of this. Thank you very much.

Happiness is a well tuned score file. Usenet is so much easier to
deal with now.

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: Show me your slrn score file.
#120719
Author: Alan Gutierrez
Date: Mon, 24 Feb 2003 08:28
286 lines
9536 bytes
In article <gan83b.m67.ln@192.168.1.75>, HoboSong wrote:
> begin  quoting Alan Gutierrez

>> I am getting started with slrn and would like to see what people are
>> doing with their scorefiles.

>> Here are my basic questions:

>> * Is there a simple way to kill a thread with one stroke?
>> * Is there a simple way to plonk a poster with one stroke?

>   since I dont like to answer a bunch of questions when I plonk someone,
>   and I dont like a commented score file ... I just wrote a script that
>   pulls the From: header and adds it to a list that I build my scorefile
>   from. 

>   So to plonk someone I just pipe the message through "autoplonk"...

>   #!/usr/bin/perl
>   
>   $ScoreFile = "/home/chris/News/Score.plonks";
>   
>   open SCOREFILE, ">>$ScoreFile"  or die 
>   	"Cannot open $ScoreFile for appending: $!";
> 
>   while(<>) {
>    
>     if ( /^From:/ ) {
>       print SCOREFILE "\t$_";
>     }
> 
>   }
> 
>   close SCOREFILE;

Great. I expanded on this. I chose the Perl route since I'm not keen
to learn yet another macro langauge. The Perl program modifies a
score file called auto.score. It creates entries based on the
headers From, Message-ID, and Subject.

score [options] < [article]

-f              by From (default)
-m              by Message-ID
-S              by Subject

-k              kill, set score -9999
-i              ignore, set score -1000

-s [num]        set score to num
-p [num]        add num points to score (can be negative)
-e [interval]   expire after interval
                never 
                now - yesterday
                3d  - days                  - 3 days
                6w  - weeks                 - 6 weeks             
                4m  - months (roughly)      - 4 * 30 days
                2q  - quarters (roughly)    - 2 * 30 * 3 days
                3y  - years (roughly)       - 2 * 365 days
-g [group]      group for rule. the default is to use the
                Newsgroups header appending wildcard *.
-u [num]        Up, use group num levels above -g group.
-o              Only, do not append wildcard *.

Now I can plonk with one command. I can also add authors to the
auto.score file and move their scores up or down as I read their
articles. I created a shell script that takes arguments that are
easier to remember, that convey the intent. The script is called mod.

mod watch       score -m -e 3m -s 5000
mod ignore      score -m -e 3m -s -3000
mod boring      score -m -e 3m -s -5000
mod kill        score -m -e 3m -s -9999

mod nudge       score -f -p 50
mod boost       score -f -p 100
mod bravo       score -f -p 1000

mod dork        score -f -p -50
mod goob        score -f -p -500
mod idiot       score -f -p -5000
mod plonk       score -f -s -9999


Now all the cream is floating to the top. Usenet has become
manageable.

------>8------>8------>8------>8------>8------>8------>8------>8
#!/usr/bin/perl

use strict;
use warnings;

use File::Temp qw(tempfile);

my %args;
my %flags = map { $_ => 1 } qw(-k -i -S -f -m -o);
my %params = map { $_ => 1 } qw(-e -s -p -g -u);

while (@ARGV) {
    my $argv = shift @ARGV;
    $flags{$argv} && ++$args{$argv} && next;
    $params{$argv} || die "$0: what do you mean by $argv?";
    $params{$argv} && defined($args{$argv} = shift @ARGV) && next
        || die "$0: no argument for parameter $argv";
    last;
}

my $points = $args{'-p'};
my $score = $args{'-k'} ? -9999 :
            $args{'-i'} ? -1000 : 
            $args{'-s'} || 0;

$args{'-f'}++ unless $args{'-S'} || $args{'-m'};

my $expires;
if (defined $args{'-e'}) {
    my $days;
    local $_ = $args{'-e'};
    SWITCH: for ($args{'-e'}) {
        /^(\d+)d$/  and $days = $1;
        /^(\d+)w$/  and $days = $1 * 7;
        /^(\d+)m$/  and $days = $1 * 30; # close enough
        /^(\d+)q$/  and $days = $1 * 30 * 3; # close enough
        /^(\d+)q$/  and $days = $1 * 365; # close enough
        /^-?\d+$/ and $days = $_;
        /^never$/ and $days = '';
        /^now$/ and $days = -1;
    }
    defined $days or die "In correct argurment for -d";
    if ($days eq '') {
        $expires = '';
    }
    else {
        my @time = localtime(time + (60 * 60 * 24) * $days);
        $time[5] += 1900; $time[4]++; $time[3]++;
        $expires = sprintf "%d/%d/%d", @time[4, 3, 5];
    }
}

my ($article);
{
    local $/ = undef;
    $article = <>;
}

sub escape_slang_re ($) {
    local $_ = shift;
    s/\./\\./g;         # More to do, I'm sure.
    $_;
}

my ($rule);
if ($args{'-S'}) {
    my ($subject) = $article =~ /^Subject:\s(?:Re: )?(.*)\n/m;
    $subject or die "$0: cannot find Subject header.";
    $subject = escape_slang_re $subject;
    $rule = "Subject: $subject";
}
elsif ($args{'-f'}) {
    my ($from) = $article =~ /^From:\s(.*)$/m;
    $from or die "$0: cannot find From header.";
    if ($from =~ /<([^>]+)>/) {
        $from = $1;
    }
    else {
        $from =~ s/\s*\([^)]+\)//;
    }
    $from = escape_slang_re $from;
    $rule = "From: $from";
}
elsif ($args{'-m'}) {
    my ($message_id) = $article =~ /^Message-ID:\s<([^>]+)>/m;
    $message_id or die "$0: cannot find Message-ID header.";
    $message_id = escape_slang_re $message_id;
    $rule = "References: $message_id";
}

my $newsgroup = $args{'-g'};
if (!$newsgroup) {
    my ($newsgroups) = $article =~ /^Newsgroups:\s(.*)$/m;
    my @groups = split /,/, $newsgroups;
    if (my $up = $args{'-u'}) {
        $up =~ /^\d+$/ || die "$0: -u requires an integer";
        my %groups;
        foreach my $group (@groups) {
            my @path = split /\./, $group;
            splice(@path, - $up);
            $groups{join '.', @path}++;
        }
        @groups = keys %groups;
    }
    @groups > 1 && die "$0: article crossposted, you must specify group";
    $newsgroup = $args{'-o'} ? $groups[0] : "$groups[0]*";
}

my ($found);
if ($rule) {
    my $auto_mod = "%Auto-Mod - [$newsgroup] - $rule";
    if (-e 'news/auto.score')  {
        my ($temp, $tempname) = tempfile();
        open SCORES, "news/auto.score" or die $!;
        while (<SCORES>) {
            if ((index($_, $auto_mod) == 0) .. /^\s/) {
                s/^Score: (-?\d+)/"Score: " . (defined $points ? ($1 + $points) : $score)/e;
                if (defined $expires) {
                    s/^%?Expires: .*$/($expires eq '' ? '%' : '') . "Expires: $expires"/e;
                }
                $found++;
                print;
            }
            print $temp $_;
        }
        close SCORES or die $!;
        close $temp or die $!;
        rename ($tempname, 'news/auto.score') or die $!;
    }
}

if (not $found) {
    $expires ||= '';
    my $append = <<SCORE;
%Auto-Mod - [$newsgroup] - $rule
[$newsgroup]
Score: @{[ $points || $score ]}
@{[ $expires eq '' ? '%' : '' ]}Expires: $expires
        $rule
SCORE
    print $append;
    open APPEND, ">>news/auto.score" or die $!;
    print APPEND "%BOS\n";
    print APPEND $append;
    print APPEND "%EOS\n";
    close APPEND or die $!;
}
------>8------>8------>8------>8------>8------>8------>8------>8

------>8------>8------>8------>8------>8------>8------>8------>8
#!/bin/sh

up=""
group=""
score="-p 50"
by=-f
expires=""

while [ $# -gt 0 ]
do
    case $1 in
        nudge|neeto ) score="-p 50";;
        boost|cool ) score="-p 100";;
        nice ) score="-p 500";;
        bravo ) score="-p 1000";;
        watch ) score="-s 5000";;
        bump|dork ) score="-p -50";;
        shove|hurt|goob ) score="-p -500";;
        ignore ) score="-s -3000";;
        boring ) score="-s -5000";;
        idiot ) score="-s -5000";;
        kill|plonk ) score="-s -9999";;
        til) shift
             test "$1" != "" || exit 1
             expires="-e $1";;
        grp|group) shift
             test "$1" != "" || exit 1
             group="-g $1";;
        up) shift
             test "$1" != "" && up="-u $1" || up="-u 1";;
        *) echo "$0: unknown arg $1" && exit;
    esac
    case $1 in
        ignore|boring|msg|watch|kill)
            by=-m
            test "x$expires" = "x" && expires="-e 90d";;
        sub) by=-s;;
    esac
    shift
done

score $expires $score $by $up $group
------>8------>8------>8------>8------>8------>8------>8------>8

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: Show me your slrn score file.
#120739
Author: David B
Date: Mon, 24 Feb 2003 21:02
15 lines
1401 bytes
Alan Gutierrez <ajglist@izzy.net> wrote:
>  In article <slrnb5gct2.il6.usenet@preater.com>, Andrew Preater wrote:

>>     Score:: -9999
>
>     Do you really kill everyone who uses outlook?
>
>>     X-Newsreader: microsoft

Harsh, but fair ;-)

-- 
David
mailto:david@davidbreach.co.uk
Re: Show me your slrn score file.
#120749
Author: David B
Date: Mon, 24 Feb 2003 22:11
15 lines
1499 bytes
Dave <duffstuff@hotmail.com> wrote:
>  On 24 Feb 2003 21:02:34 GMT, David B wrote:
>
>> Harsh, but fair ;-)
>
> But... you can't go playing psychological games with them... like sticking
>  a "begin 644 patch.jpg.vbs" in the message somewhere. ;)

That's bizarre - I used that very example in a discussion about OE earlier
today, in another place :-)

-- 
David
mailto:david@davidbreach.co.uk
Re: Show me your slrn score file.
#120778
Author: HoboSong
Date: Tue, 25 Feb 2003 07:39
20 lines
1956 bytes
begin  quoting Dave
> On 24 Feb 2003 21:02:34 GMT, David B wrote:
> 
>> Harsh, but fair ;-)
> 
> But... you can't go playing psychological games with them... like sticking
> a "begin 644 patch.jpg.vbs" in the message somewhere. ;)
> 

  Just because you kill them doesnt mean they cant see you. Im sure if I
  didnt kill -9999 Outlook users, I would have heard a few complaints
  about my posts.

-- 
-----------------------------------------------------------------------------
 Chris van Ophuijsen					        RLU #195880
 usenet@gnubin.com
 put "HoboSong" in the subject
-----------------------------------------------------------------------------
Re: Show me your slrn score file.
#120784
Author: Andrew Preater
Date: Tue, 25 Feb 2003 12:38
29 lines
2052 bytes
* Alan Gutierrez <ajglist@izzy.net>:
> Andrew Preater wrote:
>>     From: ^[^ ]+@[^ ]+$
> 
>             ^^ -> alan@izzy 
>             No top level domain?

That's right.  I don't think I'm particularly unfair with my killing
of broken articles -- could be a *lot* more harsh.  localhost in the
From or Message-ID does wind me up.

>>     Score:: -9999
>     Do you really kill everyone who uses outlook?
> 
>>     X-Newsreader: microsoft

Yeah.  It eliminates most all top-posting, and cuts those "I can't be
bothered to read the manual.  Will you read it and tell me what to
do?" questions, not to mention the borken-by-default MS articles.  If
someone says something interesting, I'll see it in a reply -- or will
sometimes reconstruct the thread if it's one I'm involved in.

> I used a lot of this. Thank you very much.

You're most welcome.  Gotta have a decent scorefile!

-- 
Andrew Preater
Re: Show me your slrn score file.
#121296
Author: Alan Gutierrez
Date: Wed, 05 Mar 2003 21:28
174 lines
7167 bytes
In article <4pthj-0h5.ln1@news.invalid.99computer>, Mike Vanecek wrote:
> On Mon, 24 Feb 2003 08:28:03 GMT, Alan Gutierrez wrote:

> [snip] 

>> Great. I expanded on this. I chose the Perl route since I'm not
>> keen to learn yet another macro langauge. The Perl program
>> modifies a score file called auto.score. It creates entries based
>> on the headers From, Message-ID, and Subject.

> I am new to all this, so please be understanding. If I understand
> this correctly, these are the options you pass to the below perl
> program?

>> score [options] < [article]
>> 
>> -f              by From (default)
>> -m              by Message-ID
>> -S              by Subject
>> 
>> -k              kill, set score -9999
>> -i              ignore, set score -1000
>> 
>> -s [num]        set score to num
>> -p [num]        add num points to score (can be negative)
>> -e [interval]   expire after interval
>>                 never 
>>                 now - yesterday
>>                 3d  - days                  - 3 days
>>                 6w  - weeks                 - 6 weeks             
>>                 4m  - months (roughly)      - 4 * 30 days
>>                 2q  - quarters (roughly)    - 2 * 30 * 3 days
>>                 3y  - years (roughly)       - 2 * 365 days
>> -g [group]      group for rule. the default is to use the
>>                 Newsgroups header appending wildcard *.
>> -u [num]        Up, use group num levels above -g group.
>> -o              Only, do not append wildcard *.
>> 
>> Now I can plonk with one command. I can also add authors to the
>> auto.score file and move their scores up or down as I read their
>> articles.

> How do you use one command? Do you have an article open in slrn
> and then do | command to execute your perl program? Eg., lets say
> I want to watch an article in a single news group for 30 days.
> While reading the article, would I type

>| score -mo -s 250 -e 30d < ???

When I press | on my keyboard I get this prompt:

Pipe to command:

And so I'd enter:

Pipe to comamnd: score -m -o -s 250 -e 3Od

The atricle viewed is fed as input to score. My Perl program reads
the headers to determine the newsgroup and  Message-ID.

Your notation for combining the switches -mo is not supported, but
if anyone else wants to use the program, I'll fix that. 

> What do I put in for <???

Nada, slrn will do that for you.

> I assume you call this program score.pl and use it as I question above?

<not-quite-on-topic>
Nope. I call it score. Adding language suffixes to executables is a
Windows/Python thing. It is a Bad Idea(R). The language is an
implmentation detail. The user does not not need to know that the
language is Perl.  It also means that if I were to rewrite the
program in shell or C, I'd have to rename the program, and break any
scripts that called the programe when it was named *.pl. Adding
language suffixes to programs is so silly, we don't call our
newsreader slrn.c. This is all just FYI.
</not-quite-on-topic>

> Or do you call this shell script from slrn doing a
> | mod watch

I find myself saying these things the most often:

# add 100 points to author in comp.lang.c++* when reading
# comp.lang.c++

Pipe to command: mod boost

# add 100 points to author in comp.lang.perl* when reading
# comp.lang.perl.misc.

Pipe to command: mod up 1 boost                

# add 100 points to author in comp.lang.c++* when reading article
# cross-posted to comp.lang.c.

Pipe to command: mod grp comp.lang.c++ boost

# have the last word.

Pipe to command: mod plonk

# when I've accedently given an author 500+ points (300 is my
# min_high_score)

Pipe to command: score -s 350

I've found that once I've been through a group I'm familiar with
three times, I've got a very nice score file that brings the best
threads to the top when I sort first by thread then by score.

It is nice that when you press | slrn starts you off the with
command you last entered. That way, once you've entered the proper
incantation to mod boost, you can just hit |<enter> to bring your
favorite authors up notch.

> If so, where does it pick up the article information?

As noted above, slrn will fed the program the entire article with
headers to the program.

> Could the mod functionality have been incorporated in the perl program
> so that you could call score directly with the same arguments?

I suppose, but score now creates score files for mutt as well as
slrn. The mod shell script was just my bridge between the slrn and
the score program arguments, which are fiddly, and getting even more
fiddly.

I also like typing the words plonk, boost, and bravo. Typing mod
plonk is somehow more satifying that typing score -k.

> This is very nice. Certainly adds functionality over the one-key
> approach. Is the score applied immediately or not until slrn is
> restarted?

I was going to look for a reapply score file macro in slrn.
Currently, when I want the score file applied, I <Esc> 1 k to edit
my base score file and exit my editor. Then slrn will prompt to
re-evaluate the score file.

Sometimes I hold off, because the resorting confuses me.

> Thank you for posting this.

New features:

* when you press v in slrn to view the scores that match the current
  article, it will note display by author, by subject, by article,
  or whatever comment you provide.  Is is quite useful to see what
  if any auto scores matched.

* score file name is now an argument.

* options new viewed with score -h.

* creates score files for mutt.

http://www.izzy.net/~ajglist/score
http://www.izzy.net/~ajglist/mod

If anyone want to use this script, please let me know! Open to
suggestions.

I'd like to figure out a way to really *plonk* someone so that when
they post, not only are their articles killed, but also any
responses. That is, you don't have to keep re-killing threads.

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: Show me your slrn score file.
#121311
Author: Alan Gutierrez
Date: Thu, 06 Mar 2003 01:12
43 lines
2594 bytes
In article <slrnb6d3tn.2va.removethis@gmx.net>, ras2 wrote:
> On 2003-03-05 21:28:25 GMT, Alan Gutierrez <ajglist@izzy.net>
>  wrote in <slrnb6cruc.a2b.ajglist@izzy.net>:

>> I was going to look for a reapply score file macro in slrn.
>> Currently, when I want the score file applied, I <Esc> 1 k to edit
>> my base score file and exit my editor. Then slrn will prompt to
>> re-evaluate the score file.

> .slrnrc:
> setkey article "reload_scorefile(-1)" "\ek"

Nice! Thank you.

>> If anyone want to use this script, please let me know! Open to
>> suggestions.
> 
> heh. That could be a dangerous thing to say...

I mean it! If anyone wants to adopt the program let me know.

>> I'd like to figure out a way to really *plonk* someone so that when
>> they post, not only are their articles killed, but also any
>> responses. That is, you don't have to keep re-killing threads.

> References. It only works for those posters who use some sort of
> custom IDs, though.
> Otherwise you have to use a patch like the one here:
> http://www.xs4all.nl/~thunder7/
> (README.persistent).

I did not correctly state my desire. Yes, References. To kill
articles that reference a particular article.

Score: =-9999 
    From: lrnb5fm71\.er3\.ajglist@localhost\.localdomain

The persistent_score patch is just what I am looking for, thanks.

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: Show me your slrn score file.
#121346
Author: Alan Gutierrez
Date: Thu, 06 Mar 2003 16:38
15 lines
1552 bytes
In article <nrrij-obe.ln1@news.invalid.99computer>, Mike Vanecek wrote:
> On Wed, 05 Mar 2003 21:28:25 GMT, Alan Gutierrez wrote:
>> In article <4pthj-0h5.ln1@news.invalid.99computer>, Mike Vanecek wrote:
> 
> [snip]

Mike

Why X-No-Archive: yes? If you were not responding to my postings my
score file would have killed you.

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: Show me your slrn score file.
#121348
Author: Alan Gutierrez
Date: Thu, 06 Mar 2003 16:40
24 lines
2075 bytes
In article <63sij-obe.ln1@news.invalid.99computer>, Mike Vanecek wrote:
> On Thu, 06 Mar 2003 01:12:59 GMT, Alan Gutierrez wrote:
>> Otherwise you have to use a patch like the one here:
>>> http://www.xs4all.nl/~thunder7/
>>> (README.persistent).
>> 
>> I did not correctly state my desire. Yes, References. To kill
>> articles that reference a particular article.
>> 
>> Score: =-9999 
>>     From: lrnb5fm71\.er3\.ajglist@localhost\.localdomain
>> 
>> The persistent_score patch is just what I am looking for, thanks.
> 
> Are you going to add that to the programs?
> 
> If so, I will keep an eye out for the updates.

Maybe over the weekend.

-- 
Alan Gutierrez - ajglist@izzy.net
http://khtml-win32.sourceforge.net/ - KHTML on Windows
Re: Show me your slrn score file.
#121665
Author: Mike Vanecek
Date: Tue, 11 Mar 2003 03:04
54 lines
2887 bytes
On Wed, 05 Mar 2003 21:28:25 GMT, Alan Gutierrez wrote:
> In article <4pthj-0h5.ln1@news.invalid.99computer>, Mike Vanecek wrote:
>> On Mon, 24 Feb 2003 08:28:03 GMT, Alan Gutierrez wrote:

[snip]

> Or do you call this shell script from slrn doing a
>> | mod watch

When I press | to enter a command, I get the Pipe to command prompt.
However, if I then press mod, slrn will not let me enter in a space so
that I can put in the rest of the command. 

I was trying to do a mod watch and mod kill.

I messed around with backspace and so on until I managed to have mod
kill in the window, but got 

/home/rh_lists/mod: score: command not found
Command /home/rh_lists/mod returned exit status 127.  Press RETURN.

Needless to say, I am not having a lot of luck here. If I can ever get
it working, I want to modify the case for watch and kill to be 30d. If I
take watch and kill out of the case structure and put it in one of its
own, does it need a not find option for what is left ignore|etc.?

Any ideas on where I need to look? I searched the manual but did not see
anything about not being able to use space after the pipe command?

[snip]

> New features:
> 
> * when you press v in slrn to view the scores that match the current
>   article, it will note display by author, by subject, by article,
>   or whatever comment you provide.  Is is quite useful to see what
>   if any auto scores matched.

I assume this is because you are inserting the appropriate comment in
news/auto.score?

> * score file name is now an argument.

I am using your default of news/auto.score.
 
> I'd like to figure out a way to really *plonk* someone so that when
> they post, not only are their articles killed, but also any
> responses. That is, you don't have to keep re-killing threads.

It would also be nice if each of the individual items in mod could be
configured individually (such as kill and watch having a 30d expire).
However, that is no biggy once I can get it to work.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads