Created
May 24, 2012 10:44
-
-
Save akheron/2780782 to your computer and use it in GitHub Desktop.
mailcap for text/html alternatives in mutt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open in browser when viewing interactively | |
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text; nametemplate=%s.html | |
# Dump with w3cm and the correct encoding when viewing non-interactively | |
text/html; /usr/bin/w3m -dump -T text/html -I %{charset} -O utf-8 %s; copiousoutput; description=HTML Text; nametemplate=%s.html | |
# Support non-standard image/jpg, too | |
image/jpg; display 'jpeg:'%s''; test=test -n "$DISPLAY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Moved to https://gist.github.com/akheron/61a01d597360c0187dc4