d925ac8f72
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>
17 lines
432 B
Bash
Executable file
17 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
|