🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #42681

SLRN s-lang macro for uu AND mime binaries?

#42681
From: Dan Birchall
Date: Tue, 11 Aug 1998 00:00
34 lines
1595 bytes
Hi folks,

After tiring of typing:

|uudecode -o /dev/stdout |xv -

every time I wanted to look at a posted image, I managed to 
scrounge up enough synapses to concoct this s-lang macro:

define pipe_to_xv ()
{
    pipe_article ("uudecode -o /dev/stdout | xv -");
}

definekey ("pipe_to_xv", "v", "article");

The problem, of course, is that this only works on uuencoded
binaries.  I'm curious as to whether anyone out there has a
macro that's smart enough to distinguish between uuencoded and
MIME encoded binaries and pipe them to the appropriate decoder.
(Distinguishing between file types would also be neat - ie,
jpg/giv/png get piped to xv while mpg get piped to xanim.)

Anybody? :)

-Dan

-- 
Dan 'Shag' Birchall, Moorestown, New Jersey.  Spam delenda est.
Made possible by Cannondale, NEC, Red Hat and viewers like you.
http://www.scream.org/maisha/ - The Unofficial Maisha Fan Page.
H.R.3888 - Congress's way of saying: Shut up and eat your spam!

Technical Details
Message-ID: <slrn6t14ej.1bq.djb@versa.scream.org>
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

Show Full Headers
Complete Article Headers
Message-ID: <slrn6t14ej.1bq.djb@versa.scream.org>
Subject: SLRN s-lang macro for uu AND mime binaries?
Date: Tue, 11 Aug 1998 00:00:00 +0000
From: djb@scream.org (Dan Birchall)
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: 380508618
Organization: Emanon Service Corp - +1 609 858 9888
Keywords: slrn s-lang uuencode mime binaries
Reply-To: djb@scream.org
Newsgroups: news.software.readers