diff options
author | Michael Hunteman <michael@huntm.net> | 2023-08-31 18:56:05 -0500 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2023-08-31 18:56:22 -0500 |
commit | bc79a9f65ba9f9fdb308b4a8eb75d0ca4e692463 (patch) | |
tree | b73f2c388c73ef5f3f5c62ed48f4748744b6de11 /.config/aerc/filters/html-unsafe | |
parent | a35c727df4d1c3bfbb9b8b7908ed202319e4d62a (diff) |
Add aerc filters
Diffstat (limited to '.config/aerc/filters/html-unsafe')
-rwxr-xr-x | .config/aerc/filters/html-unsafe | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/aerc/filters/html-unsafe b/.config/aerc/filters/html-unsafe new file mode 100755 index 0000000..8e0041c --- /dev/null +++ b/.config/aerc/filters/html-unsafe @@ -0,0 +1,17 @@ +#!/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 \ + -I UTF-8 \ + -T text/html \ + -cols $(tput cols) \ + -dump \ + -o display_image=false \ + -o display_link_number=true |