πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #239820

Re: [slrn] Multiple commands in 'editor_command' variable

#239820
From: Adam Funk
Date: Mon, 15 Feb 2010 22:25
38 lines
2180 bytes
On 2010-02-15, Ε ime Ramov wrote:

> I want to accomplish something like the following:
>
>     set editor_command "purgemail %s && vim %s"
>
> Is there a simple way to get this working in slrn? `purgemail` is a perl
> script (in $PATH) which does some basic formatting and cleaning. I use
> the exact same setting in mutt for my editor command and it works
> without issues.
>
> According to slrn manual, the value of this variable should be used as a
> shell command so I don't know where's the catch.

If I tried that and it didn't work, my next guess would be writing a
purgemail_vim.sh script like this (disclaimer: I'm making this up as I
go along):

#v+
#!/bin/bash
purgemail $1 || exit 1
vim $1
#v-

and using 

#v+
set editor_command "purgemail_vim.sh %s"
#v-

Does anyone see anything wrong wit that?


-- 
...the reason why so many professional artists drink a lot is not
necessarily very much to do with the artistic temperament, etc.  It is
simply that they can afford to, because they can normally take a large
part of a day off to deal with the ravages.          [Amis _On Drink_]
Technical Details
Message-ID: <47uo47xeha.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.dca.giganews.com!nntp.giganews.com!goblin1!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnhnjefc.erc.s@ramov.com>

Show Full Headers
Complete Article Headers
Message-ID: <47uo47xeha.ln2@news.ducksburg.com>
Subject: Re: [slrn] Multiple commands in 'editor_command' variable
Date: Mon, 15 Feb 2010 22:25:08 +0000
From: Adam Funk <a24061@ducksburg.com>
References: <slrnhnjefc.erc.s@ramov.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.dca.giganews.com!nntp.giganews.com!goblin1!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: $CABAL
Lines: 38
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net uY3nBt1B4m/OIAsXBANA9QXsgtjqi4xnKZKJHL1EmZ1T6kdUWk
X-Orig-Path: news.ducksburg.com!not-for-mail
Cancel-Lock: sha1:r8awd2H23p08HJHfoDEGuXny08w=
 sha1:FjNT+5uTW4rVMiWrun8/tFv/bCU=
User-Agent: slrn/pre1.0.0-16/mm/ao (Ubuntu Intrepid)