aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/multimap.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-05-20 18:57:00 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-05-20 18:57:00 +0100
commit448227d177665627568af19fe5dc2a09b5f55416 (patch)
tree2d7bde054c4c54b26babf117cdeef1619da146ed /src/plugins/lua/multimap.lua
parent18d74e11199d876a14b9aa9520871c3d3a96dccc (diff)
downloadrspamd-448227d177665627568af19fe5dc2a09b5f55416.tar.gz
rspamd-448227d177665627568af19fe5dc2a09b5f55416.zip
[Fix] Fix dynamic_symbols in the multimap plugin
Diffstat (limited to 'src/plugins/lua/multimap.lua')
-rw-r--r--src/plugins/lua/multimap.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index 600a09c4f..c67b3ddbe 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