Cecil Westerhof <[email protected]> writes:
> Thierry Volpiatto <[email protected]> writes:
>> Not sure from where you try to open file, but adding a line like this in
>> your ~/.mailcap should help:
>>
>> ,----[ mailcap entry ]
>> | application/pdf; acroread %s
>> `----
> That file was not on my system. The file /etc/mailcap was, but had no
> entry for pdf. I made the .mailcap file with the named entry, but to no
> avail.

Hi,

I have this (Debian Testing)

,----[ /etc/mailcap ]
| application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; 
description=Portable Document Format; nametemplate=%s.pdf
| application/x-pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; 
description=Portable Document Format; nametemplate=%s.pdf
`----

Pressing 'e' on an attached pdf opens xpdf for me.

What does "C-h v mailcap-mime-data" give for you?
Here is my relevant output:

Value: 
(("application"
  ("vnd\\.oasis\\.opendocument\\.database"

[...]

  ("pdf"
   (viewer . "/usr/bin/xpdf '%s'")
   (type . "application/pdf")
   ("nametemplate" . "%s.pdf")
   ("description" . "Portable Document Format")
   (test . "test \"$DISPLAY\" != \"\""))
  ("x-pdf"
   (viewer . "/usr/bin/xpdf '%s'")
   (type . "application/x-pdf")
   ("nametemplate" . "%s.pdf")
   ("description" . "Portable Document Format")
   (test "test" "\"$DISPLAY\"" "!=" "\"\""))
  ("pdf"
   (viewer . "fbgs -c '%s'")
   (type . "application/pdf")
   ("needsterminal" . t)
   (test))

[...]

hth



_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to