Skip to content

Instantly share code, notes, and snippets.

@akheron
Created May 24, 2012 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akheron/2780782 to your computer and use it in GitHub Desktop.
Save akheron/2780782 to your computer and use it in GitHub Desktop.
mailcap for text/html alternatives in mutt
# 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"
@akheron
Copy link
Author

akheron commented May 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment