From: Vsevolod Stakhov Date: Sat, 26 Nov 2016 14:41:40 +0000 (+0000) Subject: [Config] Add groups for message id rules X-Git-Tag: 1.4.1~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2708a3ba19620c3f8f180f26ca39a92969484804;p=rspamd.git [Config] Add groups for message id rules --- diff --git a/rules/mid.lua b/rules/mid.lua index 0b68fa612..92d0118b2 100644 --- a/rules/mid.lua +++ b/rules/mid.lua @@ -53,14 +53,14 @@ end local check_mid_id = rspamd_config:register_callback_symbol('CHECK_MID', 1.0, 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') +rspamd_config:set_metric_symbol('MID_BARE_IP', 2.0, 'Message-ID RHS is a bare IP address', 'Message ID') rspamd_config:register_virtual_symbol('MID_RHS_NOT_FQDN', 1.0, check_mid_id) -rspamd_config:set_metric_symbol('MID_RHS_NOT_FQDN', 0.5, 'Message-ID RHS is not a fully-qualified domain name') +rspamd_config:set_metric_symbol('MID_RHS_NOT_FQDN', 0.5, 'Message-ID RHS is not a fully-qualified domain name', 'Message ID') rspamd_config:register_virtual_symbol('MID_MISSING_BRACKETS', 1.0, check_mid_id) -rspamd_config:set_metric_symbol('MID_MISSING_BRACKETS', 0.5, 'Message-ID is missing <>\'s') +rspamd_config:set_metric_symbol('MID_MISSING_BRACKETS', 0.5, 'Message-ID is missing <>\'s', 'Message ID') rspamd_config:register_virtual_symbol('MID_RHS_IP_LITERAL', 1.0, check_mid_id) -rspamd_config:set_metric_symbol('MID_RHS_IP_LITERAL', 0.5, 'Message-ID RHS is an IP-literal') +rspamd_config:set_metric_symbol('MID_RHS_IP_LITERAL', 0.5, 'Message-ID RHS is an IP-literal', 'Message ID') rspamd_config:register_virtual_symbol('MID_CONTAINS_FROM', 1.0, check_mid_id) -rspamd_config:set_metric_symbol('MID_CONTAINS_FROM', 1.0, 'Message-ID contains From address') +rspamd_config:set_metric_symbol('MID_CONTAINS_FROM', 1.0, 'Message-ID contains From address', 'Message ID') rspamd_config:register_virtual_symbol('MID_RHS_MATCH_FROM', 1.0, check_mid_id) -rspamd_config:set_metric_symbol('MID_RHS_MATCH_FROM', 1.0, 'Message-ID RHS matches From domain') \ No newline at end of file +rspamd_config:set_metric_symbol('MID_RHS_MATCH_FROM', 1.0, 'Message-ID RHS matches From domain', 'Message ID') \ No newline at end of file diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua index a819ec729..2fc194965 100644 --- a/rules/regexp/misc.lua +++ b/rules/regexp/misc.lua @@ -21,19 +21,22 @@ reconf['HTML_META_REFRESH_URL'] = { -- Requires options { check_attachements = true; } re = '/