From: martin f. krafft Date: Sun, 12 Aug 2018 01:20:50 +0000 (+1200) Subject: improved HTML auto_view X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/893251e8f6b86521f95558bced4b773d7854b336?ds=inline improved HTML auto_view --- diff --git a/.mutt/mailcap.htmldump b/.mutt/mailcap.htmldump new file mode 100644 index 0000000..13fda90 --- /dev/null +++ b/.mutt/mailcap.htmldump @@ -0,0 +1,5 @@ +# +# Mutt mailcap for dumping HTML to text +# + +text/html; w3m -T %t -I %{charset} -O utf-8 -dump %s; description=HTML Text; nametemplate=%s.html; copiousoutput diff --git a/.mutt/muttrc b/.mutt/muttrc index 4281b4b..1ab606a 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -1552,7 +1552,7 @@ set include=yes # This variable specifies which files to consult when attempting to # display MIME bodies not directly supported by Mutt. # -set mailcap_path="$my_confdir/mailcap.backgrounding" +set mailcap_path="$my_confdir/mailcap.backgrounding:$my_confdir/mailcap.htmldump" # # set mailcap_sanitize=yes # @@ -4530,14 +4530,16 @@ set xterm_set_titles=yes # Controls the format of the title bar of the xterm provided that # xterm_set_titles has been set. This string is identical in formatting # to the one used by ``$status_format''. -# +# set xterm_title="mutt@%h [%?M?%M/?%m, n:%n]%?V? [%V]?" -# +# auto_view text/html #auto_view application/x-gunzip application/x-tar-gz application/x-tar application/x-gtar #auto_view application/postscript -alternative_order text/enriched text/plain text application/postscript image/* +alternative_order multipart/mixed multipart/related text/html text/enriched text/* +#alternative_order text/plain text/enriched text/html +#alternative_order text/enriched text/plain text application/postscript image/* mime_lookup application/octet-stream source $my_confdir/colours