Skip to content

Instantly share code, notes, and snippets.

@fwolf
Last active October 12, 2016 02:11
Show Gist options
  • Save fwolf/f5bf675c80b818bd1941971853ae2422 to your computer and use it in GitHub Desktop.
Save fwolf/f5bf675c80b818bd1941971853ae2422 to your computer and use it in GitHub Desktop.
Mailcap file for Mutt
# Mailcap for mutt - By Fwolf
# https://gist.github.com/fwolf/f5bf675c80b818bd1941971853ae2422
#application/x-gzip; /bin/gzip -cd '%s'; test=test -n "$DISPLAY"
# Fake cap for pgp signature, got better idea ?
application/pgp-signature; cat '%s'; copiousoutput
image/bmp; display 'bmp:%s'; test=test -n "$DISPLAY"
#text/html; lynx -dump -force_html %s; needsterminal; copiousoutput;
#text/html; elinks -dump -dump-charset %{charset} -default-mime-type text/html %s; needsterminal; copiousoutput;
text/html;\
/usr/bin/google-chrome '%s' & sleep 10;\
description=HTML Text;\
test=test -n "$DISPLAY";\
nametemplate=%s.html;
# firefox '%s' & sleep 10;\
#text/html; epiphany '%s' & sleep 3; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html
#text/html; firefox '%s' & sleep 3; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html
text/html;\
w3m -T text/html -I %{charset} -dump %s;\
nametemplate=%s.html;\
copiousoutput
application/vnd.ms-word; soffice '%s'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment