🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #255925

Re: Some more slrn questions

#255925
From: Lewis
Date: Wed, 30 Oct 2013 14:11
55 lines
3286 bytes
In message <slrnl723r5.gkl.mr@irc.sandman.net> 
  Sandman <mr@sandman.net> wrote:
> 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:

#v+
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");
#v-

(tthis is the sort of thing #v+ and #v- were invented for)

> So, hitting "f" creates a normal followup, but hitting "r" changes the 
> editor_command, follows up, then changes it back.

Where are you setting r the first time? and WHy aren't you using

post_editor_command
mail_editor_command

instead?

set mail_editor_command "~/bin/quote.php; pico....
set post_editor_command "pico ....

there is nothing sauing that mail_editor has to be for mailing. Since
I never send emails to USENET poster, I used to double the commands
myself to do slightly different things if I hit r or f.

-- 
"Queen Isabella and King Ferdinand kicked 200,000 Jews out of Spain, one
of the first acts of the Spanish Inquisition, which no one ever expects
" -- John Carroll's 21st Annual Xmas Quiz answers
Technical Details
Message-ID: <slrnl724rp.19sp.g.kreme@mbp55.local>
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!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.com> <slrnl723r5.gkl.mr@irc.sandman.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnl724rp.19sp.g.kreme@mbp55.local>
Subject: Re: Some more slrn questions
Date: Wed, 30 Oct 2013 14:11:06 +0000
From: Lewis <g.kreme@gmail.com.dontsendmecopies>
References: <slrnl6iooj.6hm.mr@irc.sandman.net> <0557kaxdl.ln2@news.ducksburg.com> <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!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Miskatonic U
Lines: 55
Injection-Date: Wed, 30 Oct 2013 14:11:06 +0000 (UTC)
Injection-Info: mx05.eternal-september.org;
 posting-host="67a6ffcad0084cff2eaf00478b4e9e19";
 logging-data="18945"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1+GIZR925r+g92ZuBBvb6+g"
User-Agent: slrn/1.0.1 (Darwin)
X-No-Archive: Yes
X-Excuse: Been playing lots of WoW
X-Face: )^b5"R:T7U>9~:PEn3YkzMfW*[b1qKeU.fP9C8~8HpU9}lA&6`bH1z
Cancel-Lock: sha1:PL9VIGD2RIK5TY0JHuCwpvfOh/0=
Mail-Copies-To: nobody
X-Original-Bytes: 2988