commit a5ff6eb7e78b605177584bca787dd8186225965d
parent 071dd79ba068d58f2044265c603a4d1dc2722466
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 21 Apr 2018 20:31:48 +0800
add H command to mutt to view html part of message
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/mutt/muttrc b/mutt/muttrc
@@ -178,6 +178,11 @@ folder-hook . push 'B=*'
auto_view text/html
# still, prefer text if available
alternative_order text/plain text/enriched text/html
+# press 'H' on a message to change this setting once and view the HTML part in priority
+macro index H \
+ "<enter-command>unalternative_order *<enter><display-message><enter-command>alternative_order text/plain text/enriched text/html<enter>"
+macro pager H \
+ "<exit>H"
# http://mutt-users.mutt.narkive.com/t0y58ITT/sort-mailbox-by-spam-tag-score-sorting-strangeness
spam "X-Spam-Status: (Yes|No), score=(-?[[:digit:]]+\.[[:digit:]]+)" "%2"