]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

improved HTML auto_view
authormartin f. krafft <madduck@madduck.net>
Sun, 12 Aug 2018 01:20:50 +0000 (13:20 +1200)
committermartin f. krafft <madduck@madduck.net>
Sun, 12 Aug 2018 01:26:50 +0000 (13:26 +1200)
.mutt/mailcap.htmldump [new file with mode: 0644]
.mutt/muttrc

diff --git a/.mutt/mailcap.htmldump b/.mutt/mailcap.htmldump
new file mode 100644 (file)
index 0000000..13fda90
--- /dev/null
@@ -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
index 4281b4bd19e5dfb3c20f9ceaa9d0970f0e6f6c1c..1ab606a74c5f5f5acd2bab8442e2d1abaedf540f 100644 (file)
@@ -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.
 # 
 # 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
 #
 # 
 # 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''.
 # 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]?"
 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
 
 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
 mime_lookup application/octet-stream
 
 source $my_confdir/colours