aboutsummaryrefslogtreecommitdiffstats
path: root/rules/mid.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-29 14:51:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-29 14:51:29 +0100
commitd31f486d55ea8827c5e540ce74dba7fdd68e8c1a (patch)
tree74ea08a7ce0fc941c921ee4a94273ce5dea19a5a /rules/mid.lua
parentd2811768ed72130425eac4d42bb30f8e8cde4d6e (diff)
downloadrspamd-d31f486d55ea8827c5e540ce74dba7fdd68e8c1a.tar.gz
rspamd-d31f486d55ea8827c5e540ce74dba7fdd68e8c1a.zip
[Fix] Fix groups mess
Diffstat (limited to 'rules/mid.lua')
-rw-r--r--rules/mid.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/rules/mid.lua b/rules/mid.lua
index d89f217da..60df4bd1f 100644
--- a/rules/mid.lua
+++ b/rules/mid.lua
@@ -67,8 +67,13 @@ local function mid_check_func(task)
end
-- MID checks from Steve Freegard
-local check_mid_id = rspamd_config:register_callback_symbol('CHECK_MID', 1.0,
- mid_check_func)
+local check_mid_id = rspamd_config:register_symbol({
+ name = 'CHECK_MID',
+ score = 0.0,
+ group = 'mid',
+ type = 'callback',
+ callback = mid_check_func
+})
rspamd_config:register_virtual_symbol('MID_BARE_IP', 1.0, check_mid_id)
rspamd_config:set_metric_symbol('MID_BARE_IP', 2.0, 'Message-ID RHS is a bare IP address', 'default', 'Message ID')
rspamd_config:register_virtual_symbol('MID_RHS_NOT_FQDN', 1.0, check_mid_id)