2022-04-16 17:40:31 +02:00
|
|
|
#!/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 \
|
2022-08-01 14:43:42 +02:00
|
|
|
-I UTF-8 \
|
2022-04-16 17:40:31 +02:00
|
|
|
-T text/html \
|
|
|
|
-cols $(tput cols) \
|
|
|
|
-dump \
|
|
|
|
-o display_image=false \
|
|
|
|
-o display_link_number=true
|