Article View: news.software.readers
Article #255923Re: Some more slrn questions
From: Sandman
Date: Wed, 30 Oct 2013 13:47
Date: Wed, 30 Oct 2013 13:47
40 lines
2230 bytes
2230 bytes
In article <0557kaxdl.ln2@news.ducksburg.com>, Adam Funk <a24061@ducksburg.com> wrote:
> > 2. Piping posts
> > So, what I would love is for slrn, when I hit "f", to pipe the current post
> > to a perl script, which massages it the way I want to and then opens it in
> > the editor of my choice, and when saved, I go back to slrn. How would such
> > a process work and look like, if possible?
>
> Sorry if this has already been answered in this thread, but I have
> something just like this for custom-forwarding. Here's the line in my
> ~/.slrnrc file:
I have now solved this! Partly with your help.
My .slrnc:
interpret "/home/sandman/bin/slrn/sandman.sl"
sandman.sl:
define quote_post ()
{
set_string_variable ("editor_command", "~/bin/quote.php; pico +8,1
-r 75 -Y followup");
call ("followup");
set_string_variable ("editor_command", "pico +8,1 -r 75 -Y
followup");
}
definekey ("quote_post", "r", "article");
(sorry about the wrapping)
So, hitting "f" creates a normal followup, but hitting "r" changes the
editor_command, follows up, then changes it back.
So now I can decide whether or not I want to run the preprocessor
--
Sandman[.net]
Technical Details
Message-ID:
<slrnl723r5.gkl.mr@irc.sandman.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!border1.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnl723r5.gkl.mr@irc.sandman.net> Subject: Re: Some more slrn questions Date: Wed, 30 Oct 2013 13:47:30 +0000 From: Sandman <mr@sandman.net> References: <slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.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.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 40 X-Trace: individual.net 1XGiHxm9UH2XL4i/uUc5eQ2C9O/gmN/c18S6uJbqxG9PDREWE= Cancel-Lock: sha1:SEsMR9McgvCG4dR68oLdjxq6rV4= User-Agent: slrn/pre1.0.0-18 (Linux) X-Original-Bytes: 1820