Subject: 8 Steps to Cope: [PINE + text/html]

From: Peter Leftwich <[email-masked]>
Date: Thu, 26 Jun 1997 14:30:57 -0400 (EDT)

P] Problem:  UserID "clint" hates Content-Type "text/html" PINE attach-
   ments. These are often sent as 7bit, from Netscape or Internet Mail.

--------------------------How To Patch This---------------------------

1] Locate the system-wide "mailcap" file on your UNIX system.  For ex.,
   I found the file on my ISP's UNIX machine at: /etc/mailcap

2] Copy the file to your home directory, or wherever it's convenient.
   eg. You would type at a UNIX prompt: cp /etc/mailcap ~clint/.mailcap

3] Now open your "local copy" in your favorite editor, ie. EMACS. <grin>
   eg. You would type at the UNIX prompt: emacs ~clint/.mailcap

4] Add the following lines to your file, as they appear here exactly:

text/html; shownonascii iso-8859-1 %s; \
        copiousoutput
text/html; shownonascii iso-8859-8 %s; \
        copiousoutput
text/html; shownonascii iso-8859-7 %s; \
        copiousoutput

5] Now you have to tell PINE that your ~clint/.mailcap file supercedes the
   system wide /etc/mailcap file.  To do this, open PINE and type these:

	m		for Main Menu
	s		for Setup
	c		for Config
	w		for WhereIs? (as in, a question)
	mailcap		type that word to search for it.
	c		to Change the value of what's there.

6] Once you find the line, change whatever is there to the following:

mailcap-search-path      = /my/home/dir/path/clint/.mailcap:/etc/mailcap

7] You should be set now.  (It's been leaked to me that PINE 4.00 will have
   its own internal simple HTML viewer to "translate" into plain text!)

8] ATTENTION ADVANCED PINE USERS: I'm sure instead of "copiousoutput"
   someone could figure out how to pipe the raw output through "lynx?"

-----------------------------Patch Done!------------------------------

E] Email me your success stories (questions) to [email-masked]

==========================================================================
Peter Leftwich               +1 914 696 4000               [email-masked]
Cloud 9 Consulting, Inc.                             http://www.cloud9.net
White Plains, NY                                    finger [email-masked]

---

From: Narbey Derbekyan <[email-masked]>
Date: 28 Jun 1997 00:00:15 GMT

Håkan Lindholm <[email-masked]> wrote:
: Peter Leftwich <[email-masked]> wrote:
: >4] Add the following lines to your file, as they appear here exactly:
: text/html; lynx -force_html %s; needsterminal

	I added that line to ~/.mailcap. Any text/html attachments now show 
up in lynx. Non-multipart text/html email now show up in pine in it's 
entirety though, HTML tags and all.
	I'm using version 3.96 FYI.

	narbey

: -- 
: Håkan Lindholm          interAF           Email:[email-masked]
: Kämnärsvägen 15 H:22    Sandgatan 2       Fax:046-2112505
: SE-226 46  LUND         SE-223 50  LUND   http://purl.oclc.org/NET/hakan
: 046-391492              046-132630        StudentDatorRådgivare Mac

-- 
--------- [email-masked] -------- http://www1.shore.net/~narbey --------
Misjudgement of the century:
	"What are you going to do, blow up the island?" 
---------------------------- Narbey Derbekyan ----------------------------

---

From: "Robert de Bath" <[email-masked]>
Date: Sun, 29 Jun 1997 10:11:10 +0100 (BST)

>    someone could figure out how to pipe the raw output through "lynx?"
I use in my ~/.mailcap file the line:

text/html; lynx -force_html -child %s; needsterminal; test=test "$DISPLAY$LYNX_VERSION" = ""

You could also use:

text/html; lynx -force_html -dump %s; copiousoutput; test=test "$DISPLAY$LYNX_VERSION" = ""

The first one lets lynx save or follow the links in the document, the second 
just gives you a references section at the end.

-- 
Rob.                           (Robert de Bath <http://www.cix.co.uk/~mayday>)

---

From: [email-masked] (H�kan Lindholm)
Date: 27 Jun 1997 01:02:45 GMT

>   eg. You would type at a UNIX prompt: cp /etc/mailcap ~clint/.mailcap
Why copy? Pine will check the personal mailcap file and if there is no
match, proceed to the global one. BTW, you should use 
"cp /etc/mailcap ~/.mailcap".  

>   eg. You would type at the UNIX prompt: emacs ~clint/.mailcap
Well, I prefer "vi ~/.mailcap" at the prompt.

>4] Add the following lines to your file, as they appear here exactly:

text/html; lynx -force_html %s; needsterminal

>   its own internal simple HTML viewer to "translate" into plain text!)
Nice!

>   someone could figure out how to pipe the raw output through "lynx?"
Sure!

-- 
Håkan Lindholm          interAF           Email:[email-masked]
Kämnärsvägen 15 H:22    Sandgatan 2       Fax:046-2112505
SE-226 46  LUND         SE-223 50  LUND   http://purl.oclc.org/NET/hakan
046-391492              046-132630        StudentDatorRådgivare Mac