Variable: mailcap-prefer-mailcap-viewers
mailcap-prefer-mailcap-viewers is a customizable variable defined in
mailcap.el.gz.
Value
t
Documentation
If non-nil, prefer viewers specified in ~/.mailcap.
If nil, the most specific viewer will be chosen, even if there is a general override in ~/.mailcap. For instance, if /etc/mailcap has an entry for "image/gif", that one will be chosen even if you have an entry for "image/*" in your ~/.mailcap file.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/net/mailcap.el.gz
(defcustom mailcap-prefer-mailcap-viewers t
"If non-nil, prefer viewers specified in ~/.mailcap.
If nil, the most specific viewer will be chosen, even if there is
a general override in ~/.mailcap. For instance, if /etc/mailcap
has an entry for \"image/gif\", that one will be chosen even if
you have an entry for \"image/*\" in your ~/.mailcap file."
:type 'boolean)