summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/rbl.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-12 16:16:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-12 16:16:11 +0100
commit2a4a393ff51b2f110426ea9d52936d136a5ddcd3 (patch)
tree2225574a51113d9cff7d312b9d6fcef5d9efc2d1 /src/plugins/lua/rbl.lua
parentdd8e32fdabe01b7d0b4ba60cd306d54d021f59ce (diff)
downloadrspamd-2a4a393ff51b2f110426ea9d52936d136a5ddcd3.tar.gz
rspamd-2a4a393ff51b2f110426ea9d52936d136a5ddcd3.zip
[Minor] Add implicit score for rbl and multimap rules
Diffstat (limited to 'src/plugins/lua/rbl.lua')
-rw-r--r--src/plugins/lua/rbl.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index d299575ee..f0165c4ab 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -954,6 +954,8 @@ local function add_rbl(key, rbl, global_opts)
rspamd_config:register_symbol{
type = 'virtual',
parent = id,
+ group = 'rbl',
+ score = 0,
name = prefix .. '_' .. rbl.symbol,
}
end
@@ -969,6 +971,8 @@ local function add_rbl(key, rbl, global_opts)
type = 'callback',
callback = callback,
name = rbl.symbol,
+ group = 'rbl',
+ score = 0,
flags = table.concat(flags_tbl, ',')
}
if not (rbl.is_whitelist or rbl.ignore_whitelist) then
@@ -1008,6 +1012,8 @@ local function add_rbl(key, rbl, global_opts)
type = 'virtual',
parent = id,
name = s,
+ group = 'rbl',
+ score = 0,
}
end
if rbl.is_whitelist then