(Note: This may be the same problem as After upgrade to 18.04, Mutt shows raw html when opening html mails in chrome, except the accepted solution there doesn't help me, as can be seen from one of the attempts below.)
I recently upgraded my Ubuntu server from Xenial (16.04) to Bionic (18.04). Prior to the upgrade, viewing an HTML attachment in Mutt would cause an instance of w3m to be started for interactive reading of the HTML; however, after the upgrade, trying to view an HTML attachment instead causes Mutt to invoke w3m with -dump and display the resulting unstyled text in Mutt's internal pager. How do I get the old behavior back?
Relevant settings and attempted fixes:
/etc/mailcapcurrently contains the following lines in the given order fortext/html:text/html; /usr/bin/sensible-browser %s; description=HTML Text; nametemplate=%s.html text/html; /usr/bin/w3m -T text/html %s; needsterminal; description=HTML Text; nametemplate=%s.html text/html; /usr/bin/w3m -I %{charset} -dump -T text/html %s; copiousoutput; description=HTML Text; nametemplate=%s.htmlMy Mutt config contains the line
auto_view text/html message/rfc822 application/x-tar-gz; removingtext/htmlcauses HTML attachments to be displayed as just the raw sourceI tried creating a
~/.mailcapfile with just the linetext/html; /usr/bin/w3m -T text/html %s; needsterminal; nametemplate=%s.html, but Mutt still insists on using the-dumpcommand for displaying HTML.