]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Spamassassin: Try to fix [if-unset] stuff
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Dec 2020 20:31:23 +0000 (20:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Dec 2020 20:31:23 +0000 (20:31 +0000)
src/plugins/lua/spamassassin.lua

index 2e8d943c1ceb2a3f426b93a3521d20516b27fb6e..5a8615d6cff8309e1e46e389f5017e3d7187f651 100644 (file)
@@ -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