From 9f77c39f59a51bd5cad1bb0e1a8f04eb2c4e5dc1 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 27 Oct 2018 19:21:14 +0200 Subject: mutt: view html mails in browser --- by_os/Linux/mutt/.mutt/mailcap | 3 ++- mutt/.mutt/muttrc | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/by_os/Linux/mutt/.mutt/mailcap b/by_os/Linux/mutt/.mutt/mailcap index 8aaaa7e..ae71a18 100644 --- a/by_os/Linux/mutt/.mutt/mailcap +++ b/by_os/Linux/mutt/.mutt/mailcap @@ -1,4 +1,4 @@ -text/html; firefox %s &>/dev/null; test=test -n "$DISPLAY"; needsterminal +text/html; browser -new-tab %s &>/dev/null & sleep 1; test=test -n "$DISPLAY"; needsterminal text/html; w3m -I %{charset} -O utf-8 -T text/html -dump %s; copiousoutput text/plain; less %s application/x-pdf; zathura %s @@ -8,3 +8,4 @@ image/jpeg; feh %s image/pjpeg; feh %s image/png; feh %s image/gif; feh %s + diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index 454f5b0..4df31c3 100644 --- a/mutt/.mutt/muttrc +++ b/mutt/.mutt/muttrc @@ -56,6 +56,11 @@ macro index , "unset wait_keymutt-notmuch-py # status bar set status_chars = " *%A" +# html +auto_view text/html +alternative_order text/plain text/enriched text/html +bind attach view-mailcap + # sidebar bind index,pager sidebar-next bind index,pager sidebar-prev -- cgit v1.2.3