From d43111eb48d45903a92a00dd1d140b8a4df4f821 Mon Sep 17 00:00:00 2001 From: yeah Date: Mon, 18 Dec 2017 14:17:47 +0100 Subject: [PATCH] Add X-Spam-Score header to checked mail (#1292) To enable users to do custom spam filtering based on score, it's helpful to render the actual spam score as a float in a separate header rather than as part of X-Spam-Status where it only appears in a comma separated list. --- setup/spamassassin.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/spamassassin.sh b/setup/spamassassin.sh index e7e09f4e..148cfd0b 100755 --- a/setup/spamassassin.sh +++ b/setup/spamassassin.sh @@ -61,10 +61,11 @@ tools/editconf.py /etc/default/spampd \ # content or execute scripts, and it is probably confusing to most users. # # Tell Spamassassin not to modify the original message except for adding -# the X-Spam-Status mail header and related headers. +# the X-Spam-Status & X-Spam-Score mail headers and related headers. tools/editconf.py /etc/spamassassin/local.cf -s \ report_safe=0 \ - add_header="all Report _REPORT_" + add_header="all Report _REPORT_" \ + add_header="all Score _SCORE_" # Bayesean learning # -----------------