🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #61501

Re: [slrn] Automatically score threads I post/follow-up to?

#61501
From: Jurriaan W Kalkman
Date: Sat, 13 May 2000 00:00
38 lines
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

Technical Details
Message-ID: <slrn8hqpbr.4k0._hate_spam_thunder7@middle.of.nowhere>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn8hqkni.lr0.jmarshall@mojo.chicken.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8hqpbr.4k0._hate_spam_thunder7@middle.of.nowhere>
Subject: Re: [slrn] Automatically score threads I post/follow-up to?
Date: Sat, 13 May 2000 00:00:00 +0000
From: thunder7@xs4all.nl (Jurriaan W Kalkman)
References: <slrn8hqkni.lr0.jmarshall@mojo.chicken.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.mbox.zip!not-for-mail
X-Deja-AN: 622950082
X-Complaints-To: abuse@xs4all.nl
X-Trace: news1.xs4all.nl 958230414 6470 194.109.14.47 (13 May 2000 15:06:54 GMT)
Organization: XS4ALL Internet BV
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: thunder7@xs4all.nl
NNTP-Posting-Date: 13 May 2000 15:06:54 GMT
Newsgroups: news.software.readers