Browse Source

Fix Bayes spamfilter issue

fix GH-4401
The string "Bayes" includes the string "yes" so the previous "contains" approach would mark everything from Bayes as spam.

---------

Co-authored-by: divinity76 <hans@loltek.net>
Jim Perkins 1 year ago
parent
commit
e8471e357d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      install/deb/exim/system.filter

+ 1 - 1
install/deb/exim/system.filter

@@ -1,4 +1,4 @@
-if $h_X-Spam-Status: contains "Yes"
+if $h_X-Spam-Status: matches ^[Yy]es
 then
 then
     headers add "Old-Subject: $h_subject"
     headers add "Old-Subject: $h_subject"
     headers remove "Subject"
     headers remove "Subject"