I recently managed to set up my mailcap so that Mutt can show HTML e-mails in the message window:
# ~/.mailcap
text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput;
which is automated by:
# ~/.muttrc
auto_view text/html
Although I think Lynx does a decent job on converting the HTML to text, sometimes this doesn't cut it and I would like to be able to open the HTML attachment in my web browser Luakit.
Is there a way to transparently do this? A good workflow for me would look like:
- open mail (Lynx converts it)
- see that it is too complicated for Lynx
- press v
- navigate to HTML attachment
- press Enter to open the mail in Luakit.