Subject: possible to read attached HTML?

From: Ed Arnold <[email-masked]>
Date: Wed, 14 Jun 2000 11:19:29 -0600 (MDT)

I've had a problem being able to read HTML files via a browser
invoked from Pine.  Anyone know if this is possible?

I'm running pine-4.10 (is that too old)?  When I receive a message
that has an attachment with header "Content-Type: text/html", I expect
that the following line from my .mailcap will cause Pine to invoke
a browser to read it:

text/html; netscape %s; description="read html attachment"

Pine does indeed invoke netscape on the attachment.  However, the
filename it creates for netscape is something like /var/tmp/img-HTML58492.
Therefore, since the filename doesn't have a ".html" suffix, netscape
displays it as plain ascii rather than interpreting it as HTML.
So far as I've been able to determine, there is no "force html" flag
to netscape.

I searched www.washington.edu/pine for "text/html" but didn't find
anything directly applicable.  One person suggested that
"lynx -force_html %s" can be used to view an HTML attachment.  However
this doesn't work for the attachment in question because it has embedded
javascript, i.e. it really needs a browser.

________________________________________________________________________
Ed Arnold * NCAR * POB 3000, Boulder, CO 80307-3000 USA * 303-497-1253 voice
303-497-1804 fax * era [at] ucar [dot] edu * 39 58 41N/105 16 29W/1865m

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Walt Smith <[email-masked]>
Date: Thu, 22 Jun 2000 09:27:27 -0400 (EDT)

Yes, Ed, this is quite possible.  For example, I use Lynx for this on my
Unix shell.  First of all, create a file called .mailcap (note the leading
dot) with the following contents:

Text/html; lynx -force_html -underscore -dump %s ; copiousoutput

Next, in the configuration, be sure that "Enable-msg-view-attachments" is
checked.

Be sure that the URL-viewers field contains the full path to your copy of
Lynx.

Now, when you press V on a message and again on the HTML attachment, you
should be able to view it properly.  If I've missed anything, I hope
someone will supplement this.

-- 
Walt Smith - Raleigh, NC
[email-masked]