aboutsummaryrefslogtreecommitdiffstats
path: root/config/aerc.conf
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-07-28 21:35:35 +0200
committerRobin Jarry <robin@jarry.cc>2023-08-04 23:16:29 +0200
commitdee1adce3f6ac9ba889fca89561231408e251aaa (patch)
treefdcf056eac9cceba3dc244b3c91d53f3501ca0b7 /config/aerc.conf
parentd5210acf092f3c3346c363dbe3ce5ca899fb5a24 (diff)
downloadaerc-dee1adce3f6ac9ba889fca89561231408e251aaa.tar.gz
filters: put libexec/filters dirs before default PATH
Some distro packages install binaries in /usr/bin that clash with some of aerc's builtin filters (for example, colorize and wrap). The issue is that aerc filters dir (usually /usr/libexec/aerc/filters) is *after* /usr/bin, making the builtin filters not accessible when these distro packages are installed. Since this mostly concerns colorize and wrap, move $LIBEXEC/aerc/filters at the beginning of the exec PATH when running filter commands. If the intent is **really** to execute /usr/bin/colorize or /usr/bin/html, then their absolute paths should be used. Link: https://archlinux.org/packages/extra/x86_64/talkfilters/ Link: https://tracker.debian.org/pkg/colorize Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Tristan Partin <tristan@partin.io>
Diffstat (limited to 'config/aerc.conf')
-rw-r--r--config/aerc.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 79a3936a..3eb30c45 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -469,7 +469,7 @@
# Filters allow you to pipe an email body through a shell command to render
# certain emails differently, e.g. highlighting them with ANSI escape codes.
#
-# The commands are invoked with sh -c. The following folders are appended to
+# The commands are invoked with sh -c. The following folders are prepended to
# the system $PATH to allow referencing filters from their name only:
#
# ${XDG_CONFIG_HOME:-~/.config}/aerc/filters
@@ -480,6 +480,9 @@
# /usr/libexec/aerc/filters
# /usr/share/aerc/filters
#
+# If you want to run a program in your default $PATH which has the same name
+# as a builtin filter (e.g. /usr/bin/colorize), use its absolute path.
+#
# The following variables are defined in the filter command environment:
#
# AERC_MIME_TYPE the part MIME type/subtype