aboutsummaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
authorq3cpma <q3cpma@posteo.net>2022-08-01 12:43:42 +0000
committerRobin Jarry <robin@jarry.cc>2022-08-03 22:36:51 +0200
commitd925ac8f7247613e28325c01a6614c37e8cbc7a0 (patch)
treedc3e05e5f02e6458d00321b6906f9cf72077818f /filters
parent903d436ab8c3a83ebd3972650312b9b72e1d49bc (diff)
downloadaerc-d925ac8f7247613e28325c01a6614c37e8cbc7a0.tar.gz
aerc-d925ac8f7247613e28325c01a6614c37e8cbc7a0.zip
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>
Diffstat (limited to 'filters')
-rwxr-xr-xfilters/html1
-rwxr-xr-xfilters/html-unsafe1
2 files changed, 2 insertions, 0 deletions
diff --git a/filters/html b/filters/html
index db7808ac..5ceee401 100755
--- a/filters/html
+++ b/filters/html
@@ -3,6 +3,7 @@
# any phoning home by rendered emails
export SOCKS_SERVER="127.0.0.1:1"
exec socksify w3m \
+ -I UTF-8 \
-T text/html \
-cols $(tput cols) \
-dump \
diff --git a/filters/html-unsafe b/filters/html-unsafe
index 6dce27e2..8e0041c5 100755
--- a/filters/html-unsafe
+++ b/filters/html-unsafe
@@ -9,6 +9,7 @@ else
PRE_CMD=""
fi
exec $PRE_CMD w3m \
+ -I UTF-8 \
-T text/html \
-cols $(tput cols) \
-dump \