]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Only bypass learn when header value matches 5701/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 24 Oct 2025 10:41:29 +0000 (11:41 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 24 Oct 2025 10:41:29 +0000 (11:41 +0100)
lualib/lua_bayes_learn.lua

index 8952f86dadef4855ee8d65cfc228072d25580c72..d44b78eee08b6fc50dce72b76dbfc0ceae230055 100644 (file)
@@ -312,7 +312,7 @@ exports.can_learn = function(task, is_spam, is_unlearn, overrides)
       if opts.bypass_header._set then
         matched = opts.bypass_header._set[header_value]
       else
-        matched = header_value ~= nil
+        matched = false
       end
 
       if matched then