diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-31 15:33:07 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-31 15:33:07 -0400 |
commit | 93695d1e84aff7c2f9a0aa4d49fc94f7b6b12d55 (patch) | |
tree | b6639eab4711e248c6792ae60d49fdd61f26ce2b | |
parent | 315cdf308ae734b8f9d4a2ca0cf679cbaa4ce0b1 (diff) | |
download | aerc-93695d1e84aff7c2f9a0aa4d49fc94f7b6b12d55.tar.gz |
Add script for sandboxing w3m
-rw-r--r-- | config/aerc.conf | 2 | ||||
-rwxr-xr-x | contrib/html | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index c310dfc3..ffd587ec 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -81,7 +81,7 @@ alternatives=text/plain,text/html # 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] diff --git a/contrib/html b/contrib/html new file mode 100755 index 00000000..db7808ac --- /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 |