Subject: External viewer for HTML messages

From: Peter Karlsson <[email-masked]>
Date: Mon, 20 Jan 1997 18:14:16 +0100

Would it be possible to define lynx as an external viewer for text/html
messages? How? I'm running Linux.

\\//
Peter - http://www.mds.mdh.se/~dat95pkn/

---

From: "Robin S. Socha" <[email-masked]>
Date: Tue, 28 Jan 1997 01:15:43 +0100 (CET)

>messages? How? I'm running Linux.

Here's what  Steve Coile  [email-masked] wrote some time ago:

++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++
If you can identify an incoming message as being of MIME type text/html,
why not simply translate it before delivery rather than bouncing it?
If you have Lynx installed on your system, you should be able to do
something like the following in your ".procmailrc" (if you're using
procmail) (untested; use at your own risk):

:0 bf
* ^Content-type: text/html
| cat > /tmp/m$$.html ; lynx -dump /tmp/m$$.html ; rm /tmp/m$$.html

This should take all messages containing a header line starting,
"Content-type: text/html" and pipe the body of the message through the
command given, which saves the body to a file ("cat > /tmp/m$$.html"),
uses Lynx to convert the HTML to plain text ("lynx -dump /tmp/m$$.html"),
then removes the old body ("rm /tmp/m$$.html").  The output from Lynx
is captured as the new body of the message and processing of your
".procmailrc" continues.
++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++

Doesn't work with me, but I think it should. I'll check that with the
procmail-group.

Cheers,
Robin

++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++
   Robin S. Socha	 Political Science Dept.	Tel: +49(0228)22217-8
   Bonner Talweg 56	 Bonn University		Fax: +49(0228)22217-9
   53113 Bonn		 email: [email-masked]
++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++
       On the package it said: "Requires MS Windows 3.11 or better"  
	       			      ...  so I got myself Linux. 
++---+---+---+---+---+---+---+---++---+---+---+---+---++---+---+---+---+---++

---

From: Peter Karlsson <[email-masked]>
Date: Wed, 29 Jan 1997 21:03:54 +0100

On 29 Jan 1997, Sven Guckes wrote:

BTW, please STOP forwarding the replies to e-mail!

> Well, I doubt that the authors of your viewer wants to make it an HTMl viewer.
> How about piping the mail to "lynx -dump" for viewing?  Too complicated?

That is something like what I want to do, but I can't get it set  up
correctly. I want to have lynx -dump set up as the external viewer (for
View Attachments), but when I tried it, my system went berzerk.

\\//