From: Vsevolod Stakhov Date: Mon, 20 May 2024 17:57:00 +0000 (+0100) Subject: [Fix] Fix dynamic_symbols in the multimap plugin X-Git-Tag: 3.9.0~35^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4976%2Fhead;p=thirdparty%2Frspamd.git [Fix] Fix dynamic_symbols in the multimap plugin --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 600a09c4ff..c67b3ddbe9 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -1124,7 +1124,7 @@ local function multimap_on_load_gen(rule) lua_util.debugm(N, rspamd_config, "%s: adding new symbol %s (score = %s), triggered by %s", rule.symbol, symbol, score, key) rspamd_config:register_symbol { - name = value, + name = symbol, parent = rule.callback_id, type = 'virtual', score = score, @@ -1133,7 +1133,7 @@ local function multimap_on_load_gen(rule) group = N, score = 1.0, -- In future, we will parse score from `get_value` and use it as multiplier description = 'Automatic symbol generated by rule: ' .. rule.symbol, - name = value, + name = symbol, }) known_symbols[value] = true end