aboutsummaryrefslogtreecommitdiff
path: root/scripts/dot-local/bin/mail_html_view
diff options
context:
space:
mode:
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-02-10 09:56:03 -0500
committerMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-02-10 09:56:03 -0500
commit8d416aa3cc6a562cb4d676eafb92d52b1ef3d334 (patch)
tree05db378117b6b67d3350b56b8702d6faac1fa545 /scripts/dot-local/bin/mail_html_view
parentab7303e1d893f33e09dbc8493f9a9179a7a40a4a (diff)
updates
Diffstat (limited to 'scripts/dot-local/bin/mail_html_view')
-rwxr-xr-xscripts/dot-local/bin/mail_html_view5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/dot-local/bin/mail_html_view b/scripts/dot-local/bin/mail_html_view
new file mode 100755
index 0000000..9792b79
--- /dev/null
+++ b/scripts/dot-local/bin/mail_html_view
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+sed -i 's/&nbsp;/ /g' "$2"
+
+w3m -I "$1" -O utf-8 -dump -T text/html -cols 100 -s -graph -o fold_textarea=true -o fold_line=true -o decode_url=true -o display_link=true -o display_borders=true -o disable_center=true -o no_cache=true -o use_cookie=false "$2"