~rjarry/aerc

ref: 0.11.0 aerc/filters/html-unsafe -rwxr-xr-x 420 bytes
12dec191Robin Jarry Release version 0.11.0 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 \
	-T text/html \
	-cols $(tput cols) \
	-dump \
	-o display_image=false \
	-o display_link_number=true