aerc/filters/html-unsafe
q3cpma d925ac8f72 filters: make it explicit that encoding is UTF-8
Document filter input charset
Add w3m filter example to default config
Adapt html and html-unsafe filters

Fixes: https://todo.sr.ht/~rjarry/aerc/65
Signed-off-by: q3cpma <q3cpma@posteo.net>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-08-03 22:36:51 +02:00

18 lines
432 B
Bash
Executable file

#!/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