Improved w3m handling for html messages.

This commit is contained in:
Storm Dragon 2023-07-10 17:10:39 -04:00
parent 523e7d4eb4
commit 1d609e46d3

View File

@ -180,9 +180,12 @@ EOF
"elinks")
echo "text/html; $browserPath %s; nametemplate=%s.html; needsterminal" > "$muttHome/mailcap"
;;
"lynx|w3m")
"lynx")
echo "text/html; $browserPath -I %{charset} -T text/html %s; nametemplate=%s.html; copiousoutput" > "$muttHome/mailcap"
;;
"w3m")
echo "text/html; $browserPath -dump -s -o display_link=yes -o display_link_number=yes -o decode_url=yes -I %{charset} -T text/html %s; nametemplate=%s.html; copiousoutput" > "$muttHome/mailcap"
;;
*)
echo "text/html; $browserPath %s; nametemplate=%s.html; needsterminal" > "$muttHome/mailcap"
esac