about summary refs log tree commit diff stats
path: root/contrib
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-31 15:33:07 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-31 15:33:07 -0400
commit93695d1e84aff7c2f9a0aa4d49fc94f7b6b12d55 (patch)
treeb6639eab4711e248c6792ae60d49fdd61f26ce2b /contrib
parent315cdf308ae734b8f9d4a2ca0cf679cbaa4ce0b1 (diff)
downloadaerc-93695d1e84aff7c2f9a0aa4d49fc94f7b6b12d55.tar.gz
Add script for sandboxing w3m
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/html10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/html b/contrib/html
new file mode 100755
index 0000000..db7808a
--- /dev/null
+++ b/contrib/html
@@ -0,0 +1,10 @@
+#!/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 \
+	-T text/html \
+	-cols $(tput cols) \
+	-dump \
+	-o display_image=false \
+	-o display_link_number=true