diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-12 16:16:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-12 16:16:11 +0100 |
commit | 2a4a393ff51b2f110426ea9d52936d136a5ddcd3 (patch) | |
tree | 2225574a51113d9cff7d312b9d6fcef5d9efc2d1 /src/plugins/lua/rbl.lua | |
parent | dd8e32fdabe01b7d0b4ba60cd306d54d021f59ce (diff) | |
download | rspamd-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.lua | 6 |
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 |