🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Felix Karpfen Fri, 09 May 2008 21:08
[slrn] Editing and using the slrn score file
#220693
Author: Felix Karpfen
Date: Fri, 09 May 2008 21:08
41 lines
2172 bytes
The sample score.sl file provided with Slrn 0.9.8.1pl1 [2005-02-17]
(included in Debian Etch) starts with the following advice:

| % Mode for editing slrn score files
|
| % To use this, add the following line to your .jedrc file: autoload
| % ("score_mode", "score");

My preferred editor is "vim". Does a similar <script|function> (and
installation instructions) exist for vim?  If "yes", please point me to
the URL.

Currently, I just load my "slrn score file" into vim and edit it
manually. But I have only just started using slrn and considered it
prudent to check before I do irreparable damage to the score file and
the program.

The following query is even more important in my envisaged use of the
score-file:

"Do slrn and slrnpull use the same syntax for their score files?"

My real interest is to identify spam messages with slrn and - based on
keywords in the Subject - kill future messages of the same type -
preferably by creating a symlink to the location at which slrnpull
expects to find its score file.

All advice/suggestions will be gratefully received.

Felix Karpfen


Felix Karpfen




-- 
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Re: [slrn] Editing and using the slrn score file
#220701
Author: Peter J Ross
Date: Fri, 09 May 2008 21:39
31 lines
2496 bytes
In news.software.readers on 09 May 2008 21:08:48 GMT, Felix Karpfen
<felixk@webone.com.au> wrote:

> The sample score.sl file provided with Slrn 0.9.8.1pl1 [2005-02-17]
> (included in Debian Etch) starts with the following advice:
>
>| % Mode for editing slrn score files
>|
>| % To use this, add the following line to your .jedrc file: autoload
>| % ("score_mode", "score");
>
> My preferred editor is "vim". Does a similar <script|function> (and
> installation instructions) exist for vim?  If "yes", please point me to
> the URL.
>
> Currently, I just load my "slrn score file" into vim and edit it
> manually. But I have only just started using slrn and considered it
> prudent to check before I do irreparable damage to the score file and
> the program.

If you want vim to highlight syntax in your slrn scorefile, call it
something like foo.score or bar.score. You'll find some files called
slrnrc.vim and slrnsc.vim somewhere in your vim installation. The
latter contains rules for highlighting slrn scorefiles.

I don't have a good answer to your other question: sorry.

-- 
PJR :-)

<http://pjr.lasnobberia.net/usenet/>
Re: [slrn] Editing and using the slrn score file
#220708
Author: W. Citoan
Date: Sat, 10 May 2008 01:16
44 lines
2703 bytes
Felix Karpfen wrote:
> 
>  The sample score.sl file provided with Slrn 0.9.8.1pl1 [2005-02-17]
>  (included in Debian Etch) starts with the following advice:
> 
> | % Mode for editing slrn score files
> |
> | % To use this, add the following line to your .jedrc file: autoload
> | % ("score_mode", "score");
> 
>  My preferred editor is "vim". Does a similar <script|function> (and
>  installation instructions) exist for vim?  If "yes", please point me to
>  the URL.
> 
>  Currently, I just load my "slrn score file" into vim and edit it
>  manually. But I have only just started using slrn and considered it
>  prudent to check before I do irreparable damage to the score file and
>  the program.

Vim works fine for editing score files.  It is what I use.  It should
recognize the syntax of the score file and color it.  I don't know of
a predefined macro for vim, but vim is customizable.

>  The following query is even more important in my envisaged use of the
>  score-file:
> 
>  "Do slrn and slrnpull use the same syntax for their score files?"

Yes.

>  My real interest is to identify spam messages with slrn and - based on
>  keywords in the Subject - kill future messages of the same type -
>  preferably by creating a symlink to the location at which slrnpull
>  expects to find its score file.

The one-key scoring macro is ideal for this.  See the first macro at:
http://slrn.sourceforge.net/macros/index.html

- W. Citoan
-- 
Calvin: "Sometimes when I'm talking, my words can't keep up with my
thoughts. I wonder why we think faster than we speak."
Hobbes: "Probably so we can think twice."
-- Bill Watterson from Calvin & Hobbes
Re: [slrn] Editing and using the slrn score file
#220707
Author: andrew
Date: Sat, 10 May 2008 01:41
18 lines
1802 bytes
On 2008-05-09, Felix Karpfen <felixk@webone.com.au> wrote:

> Currently, I just load my "slrn score file" into vim and edit it
> manually. But I have only just started using slrn and considered it
> prudent to check before I do irreparable damage to the score file and
> the program.

The easiest way may be to simply run Esc 1 k from within slrn and your
scorefile will open in your defined editor. Is this what you mean?

As well could I suggest that you consider the newer version of slrn:

http://www.jedsoft.org/slrn/download.html

   Andrew

-- 
http://www.andrews-corner.org
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