summaryrefslogtreecommitdiff
path: root/.config/aerc/filters/html
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2023-08-31 18:56:05 -0500
committerMichael Hunteman <michael@huntm.net>2023-08-31 18:56:22 -0500
commitbc79a9f65ba9f9fdb308b4a8eb75d0ca4e692463 (patch)
treeb73f2c388c73ef5f3f5c62ed48f4748744b6de11 /.config/aerc/filters/html
parenta35c727df4d1c3bfbb9b8b7908ed202319e4d62a (diff)
Add aerc filters
Diffstat (limited to '.config/aerc/filters/html')
-rwxr-xr-x.config/aerc/filters/html11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/aerc/filters/html b/.config/aerc/filters/html
new file mode 100755
index 0000000..5ceee40
--- /dev/null
+++ b/.config/aerc/filters/html
@@ -0,0 +1,11 @@
+#!/bin/sh
+# aerc filter which runs w3m using socksify (from the dante package) to prevent
+# any phoning home by rendered emails
+export SOCKS_SERVER="127.0.0.1:1"
+exec socksify w3m \
+ -I UTF-8 \
+ -T text/html \
+ -cols $(tput cols) \
+ -dump \
+ -o display_image=false \
+ -o display_link_number=true