2022-03-19 10:34:29 +00:00
|
|
|
# open html emails in browser (or whatever GUI program is used to render HTML)
|
|
|
|
text/html; xdg-open %s ; nametemplate=%s.html
|
|
|
|
# render html emails inline using magic (uncomment the line below to use lynx instead)
|
|
|
|
# text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput
|
|
|
|
text/html; render-prettyhtml %s; nametemplate=%s.html; copiousoutput;
|
2021-10-10 21:00:16 +00:00
|
|
|
text/plain; $EDITOR %s ;
|
2022-03-19 10:34:29 +00:00
|
|
|
|
|
|
|
# show calendar invites
|
|
|
|
text/calendar; render-calendar-attachment.py %s; copiousoutput;
|
|
|
|
application/ics; mutt-viewical; copiousoutput;
|
|
|
|
|
|
|
|
# open images externally
|
|
|
|
image/*; nsxiv %s ;
|
|
|
|
|
|
|
|
# open videos in mpv
|
|
|
|
video/*; mpv --autofit-larger=90\%x90\% %s; needsterminal;
|
|
|
|
video/*; setsid mpv --quiet %s &; copiousoutput
|
|
|
|
|
|
|
|
# open spreadsheets in sc-im
|
|
|
|
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; sc-im %s; needsterminal
|
|
|
|
|
|
|
|
# open anything else externally
|
|
|
|
application/pdf; xdg-open %s;
|
|
|
|
|
|
|
|
application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; xdg-open /tmp/mutt/$(basename %s) &
|
2021-10-10 21:00:16 +00:00
|
|
|
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
|
|
|
application/pgp-keys; gpg --import '%s'; copiousoutput;
|
2022-03-19 10:34:29 +00:00
|
|
|
|