summaryrefslogtreecommitdiff
path: root/filters/html-unsafe
diff options
context:
space:
mode:
Diffstat (limited to 'filters/html-unsafe')
-rwxr-xr-xfilters/html-unsafe16
1 files changed, 16 insertions, 0 deletions
diff --git a/filters/html-unsafe b/filters/html-unsafe
new file mode 100755
index 0000000..6dce27e
--- /dev/null
+++ b/filters/html-unsafe
@@ -0,0 +1,16 @@
+#!/bin/sh
+# aerc filter which runs w3m using socksify (from the dante package) to prevent
+# any phoning home by rendered emails. If socksify is not installed then w3m is
+# used without it.
+if [ $(command -v socksify) ]; then
+ export SOCKS_SERVER="127.0.0.1:1"
+ PRE_CMD=socksify
+else
+ PRE_CMD=""
+fi
+exec $PRE_CMD w3m \
+ -T text/html \
+ -cols $(tput cols) \
+ -dump \
+ -o display_image=false \
+ -o display_link_number=true