commit add8df3: [Minor] Use 1.0 as static score for dynamic symbols, erm

Vsevolod Stakhov vsevolod at rspamd.com
Sun Jun 18 19:00:03 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-06-18 19:57:29 +0100
URL: https://github.com/rspamd/rspamd/commit/add8df37e786e5d4eeb19467bc2f06aa23c61791 (HEAD -> master)

[Minor] Use 1.0 as static score for dynamic symbols, erm

---
 src/plugins/lua/multimap.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index b15ec2cf6..0e78a6e2c 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -1024,7 +1024,7 @@ local function multimap_on_load_gen(rule)
         }
         rspamd_config:set_metric_symbol({
           group = N,
-          score = score,
+          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,
         })


More information about the Commits mailing list