<br><br><div class="gmail_quote">On Wed, Dec 3, 2008 at 12:50 PM, Michael Hannon <span dir="ltr"><<a href="mailto:jm_hannon@yahoo.com">jm_hannon@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Greetings.  One of my "customers" is having a problem viewing<br>
attachments with command-line mail clients, alpine and mutt, on a system<br>
running Fedora 9, i386.<br>
<br>
The attachment type of most interest is PDF.  He's been getting error<br>
messages to the effect that the attachment is an unrecognized MIME type,<br>
and that a given attachment could not be found.  (Note that the<br>
different error messages probably arise under different conditions,<br>
after either his own environment or the system environment has changed<br>
slightly.)<br>
<br>
In fact, PDF should be recognized:<br>
</blockquote><div><br><br>speaking for mutt, if you have these lines in /etc/mailcap<br><br>application/pdf; evince %s<br>application/postscript ; evince %s<br><br>you should view pdf attachment using evince<br><br><br> </div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
    # grep pdf /etc/mime.types<br>
    application/pdf                 pdf<br>
<br>
    # grep pdf /etc/mailcap<br>
    application/pdf; /usr/bin/xdg-open %s<br>
<br>
I've been able to work around the problem by modifying /etc/mailcap to<br>
explicitly invoke a PDF viewer, as:<br>
<br>
    # grep pdf /etc/mailcap<br>
    application/pdf; /usr/bin/xpdf %s<br>
<br>
I presume I could also use evince instead of xpdf.<br>
<br>
The xdg-open man page states:<br>
<br>
    xdg-open opens a file or URL in the user's preferred application.<br>
    If a URL is provided the URL will be opened in the user's<br>
    preferred web browser. If a file is provided the file will be<br>
    opened in the preferred application for files of that type.<br>
    xdg-open supports file, ftp, http and https URLs.<br>
<br>
When I try to use xdg-open, it ALWAYS tries to open a browser (firefox),<br>
apparently because it's always being "fed" a URL, even for local files<br>
(as "file://foo.bar").  I'm not sure about this.<br>
<br>
Also I have yet to figure out how to tell xdg-open what my "preferred<br>
application" is.  Where does it get that information?<br>
<br>
If you can shed any light on any of this, please let me know.<br>
<br>
Thanks.<br>
<br>
-- Mike<br>
<font color="#888888"><br>
<br>
<br>
<br>
--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Communicate/MailingListGuidelines" target="_blank">http://fedoraproject.org/wiki/Communicate/MailingListGuidelines</a><br>
</font></blockquote></div><br>