From: Vsevolod Stakhov Date: Wed, 9 Dec 2020 20:31:23 +0000 (+0000) Subject: [Minor] Spamassassin: Try to fix [if-unset] stuff X-Git-Tag: 2.7~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fc11096b6fd98070459bbc58b4c228d1f11f2b7;p=thirdparty%2Frspamd.git [Minor] Spamassassin: Try to fix [if-unset] stuff --- diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua index 2e8d943c1c..5a8615d6cf 100644 --- a/src/plugins/lua/spamassassin.lua +++ b/src/plugins/lua/spamassassin.lua @@ -800,6 +800,10 @@ local function process_sa_conf(f) handle_header_def(words[3], cur_rule) end + if cur_rule['unset'] then + cur_rule['ordinary'] = false + end + if words[1] == 'mimeheader' then cur_rule['mime'] = true else