From de65305e354c97fc1138e1a5f62cb7a1cef6087a Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Fri, 16 Sep 2022 01:48:06 -0300 Subject: [PATCH] add quotes to parameter passed by envvar --- confd/templates/spamfilter.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confd/templates/spamfilter.tmpl b/confd/templates/spamfilter.tmpl index 4320f65..89b0b14 100755 --- a/confd/templates/spamfilter.tmpl +++ b/confd/templates/spamfilter.tmpl @@ -3,4 +3,4 @@ # pass mail through spam filter Bogofilter # arguments are passed on to sendmail -/usr/bin/bogofilter -d /vmail/bogofilter -p {{ with getv "/bogofilter/ham/cutoff" }}--ham-cutoff {{.}}{{ end }} {{ with getv "/bogofilter/spam/cutoff" }}--spam-cutoff {{.}}{{ end }} | /usr/sbin/sendmail "$@" +/usr/bin/bogofilter -d /vmail/bogofilter -p {{ with getv "/bogofilter/ham/cutoff" }}--ham-cutoff '{{.}}'{{ end }} {{ with getv "/bogofilter/spam/cutoff" }}--spam-cutoff '{{.}}'{{ end }} | /usr/sbin/sendmail "$@"