Subject: Re: Pine, mailcap and HTML forms ?

From: Paul O Bartlett <[email-masked]>
Date: Tue, 8 Jul 1997 18:41:32 -0400

On 8 Jul 1997, Vikas Agnihotri wrote:

> >Adding this to your .mailcap file will work:
> 
> >application/x-www-url-form-encoded ; cat %s
> 
> >then you can just view it within pine, instead of saving it.

    I am not a .mailcap guru, but based on my experience launching 
Lynx from Pine, you might give this a try:

application/x-www-url-form-encoded ; cat %s; needsterminal

NOTE: try this at your own risk, as I cannot guarantee results or
promise lack of damage.

Paul                             <[email-masked]>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page:  http://www.access.digex.net/~pobart

---

From: [email-masked] (Vikas Agnihotri)
Date: 09 Jul 1997 13:49:09 EDT

On Tue, 8 Jul 1997 18:41:32 -0400, 

>application/x-www-url-form-encoded ; cat %s; needsterminal

Thanks.

It is certainly better than without the 'needsterminal' in that now I can
see the contents of the attachment flash briefly on the screen before
coming back the Pine attachment screen.

How can I keep the screen from coming back to Pine's control? Something
like the 'Free output/Capture output' toggle that is there for the '|'
command?

Thanks,
Vikas

---

From: [email-masked] (Vikas Agnihotri)
Date: 08 Jul 1997 10:44:31 EDT

Hello,
 If one sets the ACTION attribute of a HTML FORM tag to "mailto:username",
the results of the form submission are mailed to the specified user.

Unfortunately, this mail is sent by most browsers as a attachment of type
application/x-www-url-form-encoded or something like that. 

The attachment data is nothing but plain-text, so there is no reason why
Pine's internal viewer cant handle it, but because of the unknown
attachment type, I am forced to save it to a file and then view it outside
of Pine.

Question:
  How can I tell Pine that this application/x-www-url-form-encoded
attachment is really text/plain and to therefore show it in the internal
viewer?

What do I put in my .mailcap for this attachment type to indicate its
equivalent handling as the text/plain MIME type?

Thanks,
Vikas

---

From: David L Miller <[email-masked]>
Date: Wed, 9 Jul 1997 19:49:36 -0700

> like the 'Free output/Capture output' toggle that is there for the '|'

Instead of cat, use something like pg or less that will pause for
user-input before returning...

-- 
David L. Miller <[email-masked]> | I do not feel obliged to believe
Software Engineer, Pine Development Team | that the same God who has endowed
Box 354841, University of Washington     | us with sense, reason, and
4545 15th Ave NE, Seattle WA 98105, USA  | intellect has intended us to forgo
Phone: (206)685-6240  FAX: (206)685-4045 | their use. -- Galileo Galilei