Thread View: news.software.readers
2 messages
2 total messages
Started by Dan Birchall
Tue, 11 Aug 1998 00:00
SLRN s-lang macro for uu AND mime binaries?
Author: Dan Birchall
Date: Tue, 11 Aug 1998 00:00
Date: Tue, 11 Aug 1998 00:00
34 lines
1595 bytes
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!
Re: SLRN s-lang macro for uu AND mime binaries?
Author: John E. Davis
Date: Fri, 14 Aug 1998 00:00
Date: Fri, 14 Aug 1998 00:00
27 lines
1258 bytes
1258 bytes
On 11 Aug 1998 18:59:03 GMT, Dan Birchall <djb@scream.org>
wrote:
>define pipe_to_xv ()
>{
> pipe_article ("uudecode -o /dev/stdout | xv -");
>}
You might try something like:
define pipe_to_xv ()
{
call ("art_bob");
if (re_search_article ("^begin \\d+ "))
{
% Looks like it is uuencoded
pipe_article ("uudecode -o /dev/stdout | xv -");
return;
}
% Base64???
pipe_article (YOUR BASE 64 DECODER);
}
--John
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads