Mailcap
From wikinotes
mailcap associates mimetypes with commands used to display them.
TODO:
learn more about mailcap
Documentation
man mailcap https://manpages.debian.org/buster/mime-support/mailcap.5.en.html
Locations
~/.mailcap
associate mimetypes with commands to launch them.
Configuration
Format
# %s is the file # if %s is none, contents passed via STDIN mime/type; command %s; # optional flags
Optional Flags.copiousoutput # program produces lots of text, shouuld be viewed in for example less. needsterminal # program requires a terminal to view
# ~/.mailcap # Misc Files application/pdf; /usr/bin/evince %s; # Text/Emails text/html; firefox %s; needsterminal text/html; w3m -I %{charset} -T text/html; copiousoutput; # Images image/*; /usr/bin/feh %s; copiousoutput image/jpeg; feh -. %s image/pjpeg; feh -. %s image/png; feh -. %s image/gif; feh -. %s image/tiff; feh -. %s # Web x-scheme-handler/about; qutebrowser %s x-scheme-handler/https; qutebrowser %s x-scheme-handler/http; qutebrowser %s text/html; qutebrowser %s