Просмотр исходного кода

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 год назад
Родитель
Сommit
e8471e357d
1 измененных файлов с 1 добавлено и 1 удалено
  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
     headers add "Old-Subject: $h_subject"
     headers remove "Subject"