[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mailcap/slrn question




On Thu, 10 Aug 2000, Dale Morris wrote:

> Does anyone have a working mailcap file that will display images from
> newsgroups in slrn? I can get mutt to display images using ee, but I've
> never been able to get slrn to display an image in a binary newsgroup. I
> always have to use Netscape News for binaries and slrn for regular text
> messages. I'd like to have slrn do everything.
> -- 

No, not working for your particular need.

I once used .mailcap for displaying images files localy from  a remote tin. 
I could remember how to do it again, but I remember it being very ungainly.
I replaced that with a c program. Finally I used a script filter. You use
the write to stdin and filter through key, "|" in tin. Must be something
similar in slrn. Uudeview is a smart decoder for both mime 7 bit encoding
(forgot its name right now)  and uuencoded files - very
useful for viewing those fine arts newsgroups.  The apc  vt320
escape sequence and kermit are not needed . They would both just
be a  viewing command for you  - display probably. At one time I used an
echo and read so you could choose the viewer on the fly, mtvp fo mpegs
for instance. This was a pain because I got a raw terminal and had to
change it and change it back. But what you are trying to do should be very
accomplishable.


#!/usr/bin/sh
cat > $HOME/News/See/Tmp
uudeview -i -d  -p $HOME/News/See $HOME/News/See/Tmp
rm $HOME/News/See/Tmp 
Image=`ls $HOME/News/See/`
kermit -s $HOME/News/See/$Image
apc_echo  "run display $Image, output \13"
rm $HOME/News/See/*
#not done


The problem is the the uudecoding , for instance in lynx 
without the decoding it becomes much easier and practical to use metamail. 

.mailcap
image/*;  putz  %s ;needsterminal 

#!/bin/sh
kermit -s $*
PICTURE=`basename $*` 
apc_echo "run display $PICTURE"

 
 





 
> 
> "Make voyages, attempt them, there's nothing else."
>                              --Tennessee Williams
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 



Reply to: