3 ms·
In your .muttrc: auto_view text/html alternative_order text/plain text text/html That presents plain text first if it's multiply-encoded, but makes html avail
by dsr_ 14y ago
In your .muttrc:
auto_view text/html
alternative_order text/plain text text/html
That presents plain text first if it's multiply-encoded, but makes html available.
In your mailcap:
text/html; /path/to/browser '%s'; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html
displays HTML in a browser window for you. mutt launches this when you choose to look at the html version.
But instead, your mailcap could have this:
text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html
which mutt interprets as "filter this through lynx and display it in the terminal" which will solve 98% of your issues. It's fast, too.
- overshard 14y agoI'll give lynx a try with this, I can't use a full browser as it would be on a remote computer setup. Thanks for the tip!
- greglindahl 14y agoSuper awesome! I use mutt on a remote server and don't want a browser involved. This recipe really does a nice job.