Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #220879
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: mutt does not find mailcap entry |
| Date | 2020-04-04 17:40 +0200 |
| Message-ID | <zRT3P-2aI-3@gated-at.bofh.it> (permalink) |
| References | <zRQyZ-A8-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Sat 04 Apr 2020 at 14:43:24 (+0200), Beatrice Torracca wrote:
>
> I have been trying to make mutt open pdf files from the
> view-attachment dialog.
>
> I was trying to make it open evince to view pdf files. It does not
> seem to recognize the mime type. I tried the same steps I followed
> with my Debian testing laptop (there the problem was a bit different
> since it opened pdf files but with calibre).
>
> Anyway I edited /etc/mailcap.order adding the line (it is the only line):
>
> org.gnome.Evince:application/pdf
>
> I ran (as root) the command "update-mime" that gave no error
> messages. Now in my /etc/mailcap file the first entry is
>
> application/pdf; evince %s; test=test -n "$DISPLAY"
>
> In my /etc/mime.types I have a line entry for pdf like this
>
> application/pdf pdf
>
> If I run the command "mutt -nF /dev/null -Q mailcap_path" to see the
> path it uses to find mailcap entries I get this output
>
> mailcap_path="~/.mailcap:/usr/share/mutt/mailcap:/etc/mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap"
>
> I don't have a .mailcap file in my home directory. There is no other
> mailcap file among those listed aside from /etc/mailcap.
>
> Still when I have a mail with a pdf attachment and I see at the bottom
> of the message in the attachment part
>
> [-- application/pdf is unsupported (use 'v' to view this part) --]
>
> I press v. I see the application/pdf attachment.
> Then if I hit Enter I get this message
>
> "No matching mailcap entry found. Viewing as text."
>
> If I press "m" I get this error message
> "mailcap entry for type application/pdf not found".
>
> I don't understand why since I do have an application/pdf entry.
>
> Anyone has any clues and can help me?
FWIW this is how I approach viewing attachments.
In ~/.mutt/muttrc I have:
$ grep mailcap .mutt/muttrc
auto_view text/html # immediate display (without v command), assumes mailcap support
set mailcap_path=$HOME/.mutt/mailcap-mutt # needed for auto_view
$
and ~/.mutt/mailcap-mutt is attached.
However, I can't help you actually view the document with evince
because, although evince opens, it gives a "Permission denied" error.
Although mutt writes the attachment as a temporary file with
-r-------- permissions, and I can open that file with xpdf even as
evince is still displaying the error message, evince can't.
If I try to open it with evince from another xterm, I "warp to" the
single evince window already displaying it.
I also tested zathura from another xterm, as you can see from the
attachment here, and that worked fine.
So AFAICT evince (which I don't normally use) works differently.
Notes: I run X with startx, and fvwm, so no DE here.
I use an individual mailcap for mutt so that I don't
get big applications starting by surprise.
As you can see, I've tested different ways of handling
HTML at various times.
Cheers,
David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mutt does not find mailcap entry Beatrice Torracca <beatricet@libero.it> - 2020-04-04 15:00 +0200
Re: mutt does not find mailcap entry <tomas@tuxteam.de> - 2020-04-04 15:10 +0200
Re: mutt does not find mailcap entry Beatrice Torracca <beatricet@libero.it> - 2020-04-05 11:10 +0200
Re: mutt does not find mailcap entry <tomas@tuxteam.de> - 2020-04-05 11:30 +0200
Re: mutt does not find mailcap entry David Wright <deblis@lionunicorn.co.uk> - 2020-04-04 17:40 +0200
Re: mutt does not find mailcap entry Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-04 18:40 +0200
csiph-web