spam.m4: Include a full path to the Userv client.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 7 May 2016 01:13:14 +0000 (02:13 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 7 May 2016 01:13:14 +0000 (02:13 +0100)
Exim clobbers its environment nowadays, so it can't find things with a
PATH search.

spam.m4

diff --git a/spam.m4 b/spam.m4
index c48386a..c51bc36 100644 (file)
--- a/spam.m4
+++ b/spam.m4
@@ -59,7 +59,7 @@ m4_define(<:SPAMLIMIT_LOOKUP:>,
 
 m4_define(<:SPAMLIMIT_USERV:>,
        <:SPAMLIMIT_SET(<:${run {/usr/bin/timeout 5s \
-                                       userv CONF_userv_opts \
+                                       /usr/bin/userv CONF_userv_opts \
                                        SHQUOTE($1) exim-spam-limit \
                                        SHQUOTE($4) \
                                        SHQUOTE($2) SHQUOTE(@$3)} \