Subject: Re: bug#22684: 24.5; Gnus seems not to understand wildcard mime types in mailcap files.

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 12 Apr 2018 18:26:46 +0200

Ben Bacarisse <[email-masked]> writes:

> With no ~/.mailcap file:
>
> 1. Start message mode
>
> 2. Eval (mailcap-parse-mailcaps)
>
> 3. Eval (mailcap-mime-info "video/quicktime")
>
> 4. Note what the view handler is (it's mplayer on mys system).  This
>    most likely comes from comes from /etc/mailcap.
>
> 5. Create a ~/.mailcap file with a line
>
>    video/*; totem %s
>
> 6. Either force a re-parse with (mailcap-parse-mailcaps nil t) or
>    restart emacs -Q and do steps 1 and 2 again.
>
> 7. Eval (mailcap-mime-info "video/quicktime").  This will be unchanged
>    but I think the local setting should take precedence.  Other programs
>    (run-mailcap, mutt, mhshow) certainly now use totem rather than
>    mplayer.

mailcap.el chooses the most specific entry, no matter what the order of
the entries are.  So if you have a video/quicktime somewhere, you can't
override that by just saying "video/*" in mailcap.el.  I think that's a
pretty odd way of doing things, but it's been that way since, well,
forever, so it's not exactly a bug...  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no