Thread View: news.software.readers
5 messages
5 total messages
Started by Jim Marshall
Sat, 13 May 2000 00:00
[slrn] Automatically score threads I post/follow-up to?
Author: Jim Marshall
Date: Sat, 13 May 2000 00:00
Date: Sat, 13 May 2000 00:00
20 lines
1470 bytes
1470 bytes
I'd like to have slrn automatically high-score threads I either start or follow-up to. I haven't found anything relating to this in my .slrnrc, but I'm sure it can done with a hook via s-lang. Does anyone have a snippet written to do this? (Basically, I want to have a Subject: entry added to my score file automatically). Also, is there a way to have slrn start up my editor (vi) at the _end_ of quoted text when following-up, instead of just after the headers? Yes, I normally prune extraneous quoted material, but I'd like to start at the end of the quoted section anyway. Using set editor_command "vi +%d '%s'" starts me at the beginning of the quoted stuff. Thanks! -- Slackware 7.0 Linux 5:58am up 4 days, 6:20, 5 users, load average: 0.00, 0.00, 0.00
Re: [slrn] Automatically score threads I post/follow-up to?
Author: Jurriaan W Kalkman
Date: Sat, 13 May 2000 00:00
Date: Sat, 13 May 2000 00:00
38 lines
2178 bytes
2178 bytes
On Sat, 13 May 2000 06:04:50 -0700, Jim Marshall <jmarshall@mojo.chicken.com> wrote: > >I'd like to have slrn automatically high-score threads I either >start or follow-up to. I haven't found anything relating to this >in my .slrnrc, but I'm sure it can done with a hook via s-lang. >Does anyone have a snippet written to do this? (Basically, I >want to have a Subject: entry added to my score file automatically). There have been threads here about how to score based on the References: line, and IIRC even one which made a post score higher if you were closer to the start of that line. You might check Dejanews for these. > >Also, is there a way to have slrn start up my editor (vi) at the >_end_ of quoted text when following-up, instead of just after the >headers? Yes, I normally prune extraneous quoted material, but I'd >like to start at the end of the quoted section anyway. Using >set editor_command "vi +%d '%s'" starts me at the beginning of the >quoted stuff. > you could probably replace vi by a little shell-script that does something like #!/bin/sh sig=`grep -n "^-- " $2` lines=`expr $1 + $sig - 1` /usr/local/bin/vi +$lines $2 which should get you started one line before your sig. Good luck, Jurriaan -- Loop: See Loop. GNU/Linux 2.2.15 SMP 5 users load av: 1.10 0.48 0.17
Re: [slrn] Automatically score threads I post/follow-up to?
Author: Jens Wahnes
Date: Sat, 13 May 2000 00:00
Date: Sat, 13 May 2000 00:00
34 lines
1736 bytes
1736 bytes
Jim Marshall wrote:
> I'd like to have slrn automatically high-score threads I either
> start or follow-up to. I haven't found anything relating to this
> in my .slrnrc, but I'm sure it can done with a hook via s-lang.
If just scoring threads you started or subthreads you participated in
the is sufficient: That's a basic slrn feature, so s-lang is needed.
Just use a simple entry in your scorefile, like this:
[*]
Score: +999
References: jmarshall@mojo\.chicken\.com>$
And maybe a second one:
[*]
Score: +1
References: jmarshall@mojo\.chicken\.com>
The first one scores direct followups, the second any followup to a
subthread you posted to. Since threads tend to drift from the original
subject quite soon, I wouldn't give too high a score for posts which
have one of your Message-IDs just somewhere in the references.
Jens
--
"What is robbing a bank compared with founding a bank?"
- Bertolt Brecht
Re: [slrn] Automatically score threads I post/follow-up to?
Author: Jim Marshall
Date: Sat, 13 May 2000 00:00
Date: Sat, 13 May 2000 00:00
28 lines
1533 bytes
1533 bytes
In news.software.readers on 13 May 2000 14:25:27 GMT, Jens Wahnes <jewa@gmx.net> wrote: >Jim Marshall wrote: > >> I'd like to have slrn automatically high-score threads I either >> start or follow-up to. I haven't found anything relating to this >> in my .slrnrc, but I'm sure it can done with a hook via s-lang. > >Just use a simple entry in your scorefile, like this: > >[*] > Score: +999 > References: jmarshall@mojo\.chicken\.com>$ > >And maybe a second one: > >[*] > Score: +1 > References: jmarshall@mojo\.chicken\.com> Much obliged, Jens. I had forgotten about the References: header. That does the trick. -- Slackware 7.0 Linux 2:57pm up 4 days, 15:33, 5 users, load average: 0.00, 0.00, 0.00
Re: [slrn] Automatically score threads I post/follow-up to?
Author: Jim Marshall
Date: Sat, 13 May 2000 00:00
Date: Sat, 13 May 2000 00:00
24 lines
1487 bytes
1487 bytes
In news.software.readers on 13 May 2000 15:06:54 GMT, Jurriaan W Kalkman <thunder7@xs4all.nl> wrote: >On Sat, 13 May 2000 06:04:50 -0700, Jim Marshall ><jmarshall@mojo.chicken.com> wrote: >>set editor_command "vi +%d '%s'" starts me at the beginning of the >>quoted stuff. >> >you could probably replace vi by a little shell-script that does >something like > >#!/bin/sh >sig=`grep -n "^-- " $2` >lines=`expr $1 + $sig - 1` >/usr/local/bin/vi +$lines $2 > Very nice. A little tweak (sig=`grep -n "^-- " $2 | cut -d : -f 1`) got just what I wanted. Thanks for the help! -- Slackware 7.0 Linux 2:53pm up 4 days, 15:29, 5 users, load average: 0.01, 0.01, 0.00
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