aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-05-21 19:46:35 +0600
committerGitHub <noreply@github.com>2024-05-21 19:46:35 +0600
commit08990def9860c586d9d9ec5a4e9865e3a9747aa4 (patch)
treeda37c966402d8fea318bf6e1407f854aa0367326 /src
parentbc3bbaa6c769ddfbf5d6d614687300e21d8649f3 (diff)
parent448227d177665627568af19fe5dc2a09b5f55416 (diff)
downloadrspamd-08990def9860c586d9d9ec5a4e9865e3a9747aa4.tar.gz
rspamd-08990def9860c586d9d9ec5a4e9865e3a9747aa4.zip
Merge pull request #4976 from rspamd/vstakhov-fix-multimap-multisym
Fix multimaps with dynamic symbols
Diffstat (limited to 'src')
-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