Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unknown mime type

2 views
Skip to first unread message

Jim Haynes

unread,
Oct 5, 2008, 9:46:47 PM10/5/08
to
I have mail containing some pdf files as attachments. When I read
the mail with alpine 2.0 and try to view an attachment, it opens a
window named Evince Document Viewer and that displays an error
Unable to open document, Unknown MIME type.

How do I fix this?

--

jhhaynes at earthlink dot net

Supreet Joshi

unread,
Oct 14, 2008, 8:48:52 AM10/14/08
to
On Sun, 5 Oct 2008, Jim Haynes wrote:

> I have mail containing some pdf files as attachments. When I read
> the mail with alpine 2.0 and try to view an attachment, it opens a
> window named Evince Document Viewer and that displays an error
> Unable to open document, Unknown MIME type.
>
> How do I fix this?

The problem is with Evince, which is being called by pine.
Edit your ~/.mailcap to include the line :
application/pdf;/usr/bin/xpdf %s

This will mean Pine will use xpdf to read PDF file.
If you use any other PDF viewer, supply the path instead of xpdf path.

HTH.

Jim Haynes

unread,
Oct 14, 2008, 2:22:28 PM10/14/08
to
On 2008-10-14, Supreet Joshi <sup...@invalid.invalid> wrote:
> The problem is with Evince, which is being called by pine.
> Edit your ~/.mailcap to include the line :
> application/pdf;/usr/bin/xpdf %s
>
> This will mean Pine will use xpdf to read PDF file.
> If you use any other PDF viewer, supply the path instead of xpdf path.
>
Thanks. I found I did not have a .mailcap file - was something supposed
to have created it? Or what else should be in there besides pdf files?

Supreet Joshi

unread,
Oct 15, 2008, 2:47:43 AM10/15/08
to

I am not sure how .mailcap comes into existence, I have always found it in
my home (but I always had pine installed). Pine's config does have a field
called " mailcap path", in case you use a different mailcap file.

It should basically have the paths of all applications that you want used
to open attachments from pine. E.g:
image/jpeg;/usr/X11R6/bin/xv %s
application/vnd.oasis.opendocument.spreadsheet;/apps/ame/bin/soffice %s

And so on.

HTH,
Supreet.
>

0 new messages