]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Remove check for non-existent fuzzy_result mempool variable
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 13 Feb 2026 07:24:50 +0000 (07:24 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 13 Feb 2026 07:24:50 +0000 (07:24 +0000)
The fuzzy_result mempool variable is never set by fuzzy_check, so the
early return was always triggered, making the phishing mismatch check
a no-op. The actual logic uses get_symbols_all() which works correctly.

rules/fuzzy_html_phishing.lua

index ec5d19bc42087de1292e8d3c52e0d5ef26ce9df2..2a88e164c5b2a0f3e3527d3965366f2c91df6375 100644 (file)
@@ -30,12 +30,6 @@ local lua_util = require "lua_util"
 local N = 'fuzzy_html_phishing'
 
 local function check_fuzzy_mismatch(task)
-  local fuzzy_results = task:get_mempool():get_variable('fuzzy_result')
-
-  if not fuzzy_results then
-    return false
-  end
-
   -- Get fuzzy check symbols from task results
   local all_symbols = task:get_symbols_all()
   local has_text_fuzzy = false