Subject: How to recognise unknown mime format (*.xsl)?

From: Murphy <[email-masked]>
Date: Wed, 21 Jan 2004 14:25:55 +0100 (MET)

Hi,

I just wonder how to force Pine to recognise correctly the *.XSL
files. Curently it displays such info in the details about atachment:

Details about Attachment #2 :

                Type            : Application
                Subtype         : OCTET-STREAM
                Encoding        : BASE64
                Parameters      : NAME = trainingAssessment.xls
                Description     : ""
                Disposition     : ATTACHMENT; FILENAME = trainingAssessment.xls
                Approx. Size    : 39,681 bytes
                Display Method  : Can't, Unknown Attachment Format

Any ideas?

Regards,
Murphy

-- 
  __   __
  ||   ||
 -++- -++- --------------------------------------------------------
  ||\ /||  e-mail: [email-masked]           GG 107745
  ||   ||  Everything is possible - this is only a question of time
  \/564\/  --------------------------------------------------------
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Murphy <[email-masked]>
Date: Wed, 21 Jan 2004 14:36:03 +0100 (MET)

On Wed, 21 Jan 2004, Murphy wrote:

I found something like this in the Release note:

    "Attachment viewing now offers option to view by file extension if mime
    type is unknown"

But I couldn't find any place to turn this feature on. :(
Any ideas how to do this?

Regards,
Murphy

---

From: Mats Dufberg <[email-masked]>
Date: Thu, 22 Jan 2004 00:06:06 +0100 (CET)

>                 Display Method  : Can't, Unknown Attachment Format

If you create a file named ".mime.types" in your home directory or a
system wide "/etc/mime.types" and enter the MIME type information that
should be associated with ".xls" then pine can use them as such.

This is my .mime.types:

text/html               html htm
application/pdf         pdf

Then you need a file to connect MIME type to application, ".mailcap" in
your home directory or system wide "/etc/mailcap". This is my .mailcap:

Application/MSWORD;/usr/local/bin/antiword %s
Application/PDF;/usr/X11R6/bin/xpdf %s

Mats

-----------------------------------------------------------------
Mats Dufberg                                      [email-masked]
Blaoarvsgraend 42                                  +46-8-38 48 59
SE-162 45 Vaellingby, Sweden                      +46-70-258 2588

---

From: Murphy <[email-masked]>
Date: Thu, 22 Jan 2004 15:32:51 +0100 (MET)

>Application/PDF;/usr/X11R6/bin/xpdf %s

OK, I got it. But How I will recognise the what to use to open the
Excel file (*.xsl) from the Word file (*.doc) when Pine during
attaching a file always says that this type is an
"APPLICATION/octet-stream"?

Is the Pine using these mime.types and mailcap when it attaching the
files to the e-mail?

Regards,
Murphy

---

From: Mats Dufberg <[email-masked]>
Date: Thu, 22 Jan 2004 20:00:33 +0100 (CET)

> "APPLICATION/octet-stream"?

Enter into .mime.types:

application/msexcel     xsl

And enter into .mailcap

application/msexcel;/usr/local/bin/kspread %s

(Replace with whatever application that you want to open excel spread
sheats with.)

> Is the Pine using these mime.types and mailcap when it attaching the

It's using mime.types (but not mailcap) when attaching. That is why I have
entered text/html into my mime.types.

Mats

---

From: Murphy <[email-masked]>
Date: Thu, 22 Jan 2004 23:44:32 +0100 (MET)

>(Replace with whatever application that you want to open excel spread

I try this, but my version of Pine still recognise the xsl file as
the:

    2    39 KB      Application/OCTET-STREAM (Name: "trainingAssessment.xls"), ""

and only this works if I put such data type into a ".mime.types" file.
But in this case I can't open a word file because it would require
this same "OCTET-STREAM" type as for xls files.

The only *workaround* which is in my mind is to create a script which
would check the file extension and, basing on this, it would run the
proper application. But why this doesn't work for me?

>entered text/html into my mime.types.

I noticed, that my version of Pine uses the wrong (default)
description which is not "application/msexcel" but the one mentioned
above. Do you know what can be wrong?

Regards,
Murphy