From 1d609e46d36e64a0018bc8766d67fcda2b84425f Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 10 Jul 2023 17:10:39 -0400 Subject: [PATCH] Improved w3m handling for html messages. --- fleacollar.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fleacollar.sh b/fleacollar.sh index 84335a8..1f638fe 100755 --- a/fleacollar.sh +++ b/fleacollar.sh @@ -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