Subject: Re: HTML messages

From: Heather Flanagan <[email-masked]>
Date: Thu, 06 Mar 1997 11:40:40 -0500

Bryan Logan wrote:
> 
> Both Netscape and Internet Mail send messages with HTML code in them.
> So, of course, the obvious question arises:
> 
> Can Pine be programmed to display these messages normally?  I know that
> coding HTML into Pine may be hard, but could they program it to recognize
> HTML or have a function key that will display the message using lynx?
> 
> Thanks.
> 

This is what I put in our /etc/mailcap - it pulls up lynx whenever one
tries to view an html attachment:

text/html; lynx -force_html %s; needsterminal

The next trick is to have it figure out how to pull up netscape, but
I'll do that in my "spare" time.

-heather f.

---

From: Luis Hernandez <[email-masked]>
Date: Thu, 06 Mar 1997 20:21:21 -0500

> I'll do that in my "spare" time.

The only problem here, I noticed, is that you start a lynx session for
every message read. For example, I replaced lynx with my netscape
browser, but I don't feel like running ump-teen Netscape sessions.
Anyone have any suggestion on working around this? Any way I can get the
document to the already-running copy of Netscape?

Anyone?
-- 

Luis Hernandez

	NETAXIS, Inc.		Phone:	203-969-0618
	1707 Summer Street	Fax:	203-921-1544
	Stamford, CT 06905	E-mail: [email-masked]
	http://www.netaxis.com

---

From: Martin Struwe <[email-masked]>
Date: Fri, 07 Mar 1997 19:28:11 +0100

Heather Flanagan wrote:
> > Can Pine be programmed to display these messages normally?
> 

The following entry is working to use netscape3.01 (unix):

text/html; netscape -remote 'openFile(%s)';

	Greetings, Maletin.

--
Martin Struwe              http://fsinfo.cs.uni-sb.de/~struwe/
Richard-Wagner-Str. 91     mailto:[email-masked]
D-66125 Dudweiler (Saar)

---

From: "Robin S. Socha" <[email-masked]>
Date: Fri, 7 Mar 1997 22:46:25 +0100 (CET)

On Sweetmorn, the 66th day of Chaos in the YOLD 3163, Luis Hernandez wrote:
  >> > So, of course, the obvious question arises: Can Pine be programmed to
  >> > display these messages normally? I know that coding HTML into Pine
  >> > may be hard, but could they program it to recognize HTML or have a
  >> > function key that will display the message using lynx?
  >every message read. 

If you spent more time reading the mailcap manual instead of whining about
some crappy toy like Netcrap not working properly, you would have found this
for lynx:

	test=test -z "$DISPLAY" -a -z "$LYNX_VERSION"; needsterminal

  >For example, I replaced lynx with my netscape browser, but I don't feel
  >like running ump-teen Netscape sessions. Anyone have any suggestion on
  >working around this? 

How about working over it with
	sudo rm -rf /usr/local/bin/netscape
for example.

  >Any way I can get the document to the already-running copy of Netscape?
  >Anyone?

Sure: www.netscape.com and the mailcap man page.

Cheers,
Robin

  Robin S. Socha	  | Bonner Talweg 56  | Tel:   +49 228 22217-8
  Political Incorrectness | 53113 Bonn        | Fax:   +49 228 22217-9
  Dept. Bonn University   | Germany           | email: [email-masked]

       On the package it said: "Requires MS Windows 3.11 or better"  
	       			      ...  so I got myself Linux.

---

From: Ray Cummins <[email-masked]>
Date: Sat, 8 Mar 1997 08:08:02 -0500 (EST)

> Sure: www.netscape.com and the mailcap man page.

Forgive me if I'm wrong, but I believe this list is for helpful
suggstions, not sarcasm and derision for your own pleasure.

---

From: Luis Hernandez <[email-masked]>
Date: Sat, 8 Mar 1997 10:49:18 -0500 (EST)

> 	       			      ...  so I got myself Linux. 

This is the most obnoxiously, irresponsible, and childish response to a
generally benign post that anyone could image.

If you have enough free time to respond, maybe you should take a minute to
actually help.

Luis Hernandez

---

From: Robin S Socha <[email-masked]>
Date: Sat, 8 Mar 1997 21:07:13 +0100 (CET)

>> Sure: www.netscape.com and the mailcap man page.
           ^^^^^^^^^^^^^^^^         ^^^^^^^^^^^^^^^^
              a)                          b)

  >If you have enough free time to respond, maybe you should take a minute to

The command is:

	text/html; netscape -remote 'openfile('%s')';

and it took me exactly 7 minutes to figure it out. Here's how:

	1) netscape -h tells you:
		-remote <remote-command>  
		to execute a command in an already-running Netscape process.
		For more info, see
		http://home.netscape.com/newsref/std/x-remote.html

	2) got x-remote.html (see above a) )

	3) *read* it

	4) cursed the morons at netscape.com for their gibberish

	5) toyed with /etc/mailcap for 2 minutes (see above b) )

	6) done.

So, dear Luis Hernandez, instead of whining publicly, why didn't you go
ahead and found that out yourself. Get a life---this is the pine user list,
not the netrape loser list.

Cheers,
Robin

  Robin S. Socha	  | Bonner Talweg 56  | Tel:   +49 228 22217-8
  Political Science Dept. | 53113 Bonn        | Fax:   +49 228 22217-9
  Bonn University  	  | Germany           | email: [email-masked]

---

From: Luis Hernandez <[email-masked]>
Date: Sat, 8 Mar 1997 15:15:36 -0500 (EST)

>   >> Sure: www.netscape.com and the mailcap man page.

Thank you oh-so-much for your help - you're the best!

Luis Hernandez

---

From: Robin S Socha <[email-masked]>
Date: Sat, 8 Mar 1997 21:24:31 +0100 (CET)

>generally benign post that anyone could image.

[I *love* this sentence...]

Here's an even better solution

>From: "Glenn A. Malling" <[email-masked]>
>To: Robin S Socha <[email-masked]>
>Subject: Re: HTML Support for mailcap
>
>Here's the clip from my mailcap.
>
># The following is in support of text/html.  We try to use an existing
># instantiation of netscape if possible.  If not start a new one.
>
>text/html; netscape -remote "openFile(%s)" || netscape %s; \
>           test=test -n "$DISPLAY" -a -z "$LYNX_VERSION"
>           
># Startup lynx for text/html if X11 is not there.
># Make sure lynx itself ignores this.  It already knows what to do.
># I don't know if it's possible to feed a URL to a running
># lynx or not.  - gam
>
>text/html; lynx -force_html %s; \
           
Will this stop the "discussion"? Will someone please put this into the FAQ?

Cheers,
Robin

---

From: Peter Karlsson <[email-masked]>
Date: Sun, 9 Mar 1997 14:46:08 +0100

> Will this stop the "discussion"? Will someone please put this into the FAQ?

Okay, with that settled, now on to the next question; how do one get Pine
to correctly label .html and .htm files as text/html instead of
text/plain?

\\//
Peter - http://nafmo.home.ml.org/