These days more and more HTML emails are being unsed. Unfortunately making mutt render html in color via elinks works only partially due to the fact that the internal pager of mutt overwrites the color codes coming from the external tool. To overcome this i'm using an external pager:
In my .mailcap
text/html; elinks -dump -dump-color-mode 3 \
dump-charset utf-8 -default-mime-type text/htm %s; \
copiousoutput
and in .muttrc
set pager=more
auto_view text/html
However now the pager doesn't display any non-html email which makes it unusable.
I'd like to know if there is a way to either
- Make the external pager render non-html email. (I don't understand why this doesn't work off the bat.)
- Use the external pager selectively only for .mailcap designated types. (Piping the output of elinks to more won't work as the output is being filtered by the internal pager.)