]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use 1.0 as static score for dynamic symbols, erm
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 18 Jun 2023 18:57:29 +0000 (19:57 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 18 Jun 2023 18:57:29 +0000 (19:57 +0100)
src/plugins/lua/multimap.lua

index b15ec2cf6e47f487badbf5db4b663d3dd00bf977..0e78a6e2c694b5d477665870f8bb04a15862f290 100644 (file)
@@ -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,
         })