Subject: Re: PINE-INFO digest 1085

From: Matt Ackeret <[email-masked]>
Date: Wed, 16 May 2001 11:41:03 -0700 (PDT)

On Wed, 16 May 2001:
>A neat method was mentioned on another list, in which Pine invokes lynx
>and lynx decodes the HTML.
>If you go into the view menu using v, and hit enter on the text/html
>attachment, lynx is invoked.
>This method uses the .mailcap file below:
># Text/html; lynx -force_html -underscore -dump %s ; copiousoutput
>text/html; lynx -force_html %s ; needsterminal

Actually, if you're actually trying to look at the html, using "links"
might be better -- just because it formats tables and such.

That is, I continue to use Lynx a lot for really fast browsing.. but
when I care more about the look, I use links.

http://artax.karlin.mff.cuni.cz/~mikulas/links/

my .mailcap has:
text/html; links %s;needsterminal

---

From: Ed Arnold <[email-masked]>
Date: Thu, 17 May 2001 10:40:10 -0600 (MDT)

> text/html; links %s;needsterminal

It was mentioned recently on this list by John Soper that you can
use netscape to view html attachments if you use a short script.
The short script has the additional benefit that it forks the browser
into the background so pine can continue.

To support this, I have the line "url-viewers=~/bin/ns" in my .pinerc
file.  In my .mime.types file, I have the lines "text/html htm" and
"text/html html".  The script ~/bin/ns is:

#!/bin/sh
# short script to invoke netscape from within pine as a background
# process, so pine can continue.  Only arg is the URL.
# Author: Ed Arnold <[email-masked]> , but modified by Mike Miller & John
# Soper
NETSCAPE=/usr/local/bin/netscape
URL=`echo $1 | sed 's/,/%2C/g'`

#
# handle viewing HTML attachment or message files
#
ATTACH=`echo $URL | grep /tmp/img-HTM | wc -l`
if [ $ATTACH = 1 ]; then
    cp $URL ${URL}.html
    URL=${URL}.html
fi

if [ -h $HOME/.netscape/lock ]; then
   $NETSCAPE -noraise -remote openURL\("$URL"\,new_window\) &
else
   $NETSCAPE "$URL" &
fi