93695d1e84aff7c2f9a0aa4d49fc94f7b6b12d55 — Drew DeVault a month ago 315cdf3
Add script for sandboxing w3m
2 files changed, 11 insertions(+), 1 deletions(-)

M config/aerc.conf
A contrib/html
M config/aerc.conf => config/aerc.conf +1 -1
@@ 81,7 81,7 @@ # against (non-case-sensitive) and a comma, e.g. subject,text will match a
  # subject which contains "text". Use header,~regex to match against a regex.
  subject,~PATCH=contrib/hldiff.py
- text/html=w3m -T text/html -cols $(tput cols) -dump -o display_image=false -o display_link_number=true
+ text/html=contrib/html
  text/*=contrib/plaintext.py
  
  [lbinds]

A contrib/html => contrib/html +10 -0
@@ 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