Article View: news.software.readers
Article #255922Re: Some more slrn questions
From: Sandman
Date: Wed, 30 Oct 2013 11:12
Date: Wed, 30 Oct 2013 11:12
52 lines
2688 bytes
2688 bytes
In article <0557kaxdl.ln2@news.ducksburg.com>, Adam Funk wrote: > > Sandman: > > 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: <snip> I've snipped out your code, because I am curently working with this function, and it "massaged" your code a bit too much :) My version of this just look like this: set editor_command "~/bin/quote.php; pico +8,1 -r 75 -Y followup" Which runs ~/bin/quote.php before editing ~/.followup. Now, the problem I'm having is that i can't choose when/if I want to run this command. Your approach seems to deal with this, since you have set "F" to run your script. But - your script seems to save the current article to the /tmp dir and then the perl script edits that. But I want to edit the ~/.followup file that slrn creates when I hit "f" and then resume normal operations. So basically, the normal chain is as such: 1. hit "f" in slrn 2. slrn creates ~/.followup 3. slrn invokes editor_command I want to be able, like you, create an alternate chain here, and not insert in my "hook" in the editor_command, so this is the chain I'd like: 1. hit "F" in slrn 2. slrn creates ~/.followup 3. script runs ~/bin/quote.php 4. slrn invokes editor_command Any idea? Thanks for your input either way! -- Sandman[.net]
Technical Details
Message-ID:
<slrnl71qnl.g7k.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!backlog3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.CARNet.hr!Iskon!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: <slrnl71qnl.g7k.mr@irc.sandman.net> Subject: Re: Some more slrn questions Date: Wed, 30 Oct 2013 11:12:03 +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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!backlog3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.CARNet.hr!Iskon!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 52 X-Trace: individual.net 5EGRfh7gn7VT3QoquPeDzwTpqD6oNGqzijH6gyU9c903/Cemo= Cancel-Lock: sha1:AFGYeeOi8ms/xovhWwQRy4njexc= User-Agent: slrn/pre1.0.0-18 (Linux) X-Original-Bytes: 2437