🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #62155

Re: [slrn] Piping an article to a bash script to view attachment.

#62155
From: Steve
Date: Sat, 03 Jun 2000 00:00
49 lines
1795 bytes
On 31 May 2000 03:42:27 GMT, John E. Davis wrote:

Thanks John this did the trick.  Now how can I make it recognise
and open multiple attachments, I've got it using the display
utility of ImageMagic, I can't get XV to compile.  Any pointers
to get the multiple attachments thing would be great, but this
has already made life so much easier as it is. 

Thanks
Steve

>#v+
>  (slrn_uudecode --stdout $1 | xv - &) <&0
>#v-
>
>Finally, use the macro:
>
>#v+
>define xv_view_article ()
>{
>   call ("art_bob");
>   
>   if (re_search_article ("^begin \\d+ "))
>     pipe_article ("uuxv");
>   else
>     pipe_article ("uuxv -64");
>}
>definekey ("xv_view_article", "v", "article");
>#v-
>
>The net result is that pressing `v' will fire up xv and display the
>encoded image.
>
>--John


-- 
Cheers
Steve              email mailto:sjlen@ndirect.co.uk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

  9:54pm  up 3 days, 21:25,  2 users,  load average: 2.17, 2.13, 2.04

Technical Details
Message-ID: <slrn8jisd3.loo.sjlen@zero-pps.localdomain>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn8j88av.dfr.sjlen@zero-pps.localdomain> <slrn8j92h1.am1.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8jisd3.loo.sjlen@zero-pps.localdomain>
Subject: Re: [slrn] Piping an article to a bash script to view attachment.
Date: Sat, 03 Jun 2000 00:00:00 +0000
From: sjlen@ndirect.co.uk (Steve)
References: <slrn8j88av.dfr.sjlen@zero-pps.localdomain> <slrn8j92h1.am1.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 630700969
X-Trace: 3 Jun 2000 22:06:39 GMT, 195.7.226.63
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: sjlen@ndirect.co.uk
Newsgroups: news.software.readers