diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-25 07:43:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-25 07:43:41 +0000 |
commit | e59e7c632a6a71c9b4cc0b9cea0e14fad079bb2f (patch) | |
tree | 45891e1ae47f7561d2b605b4047f60a6e610a624 /rules/mid.lua | |
parent | 6d2aa7b9de4a960db57f1389208274b31d8b5a29 (diff) | |
download | rspamd-e59e7c632a6a71c9b4cc0b9cea0e14fad079bb2f.tar.gz rspamd-e59e7c632a6a71c9b4cc0b9cea0e14fad079bb2f.zip |
[Minor] Pet luacheck
Diffstat (limited to 'rules/mid.lua')
-rw-r--r-- | rules/mid.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rules/mid.lua b/rules/mid.lua index 60df4bd1f..b04a8bb46 100644 --- a/rules/mid.lua +++ b/rules/mid.lua @@ -77,7 +77,8 @@ local check_mid_id = rspamd_config:register_symbol({ 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) -rspamd_config:set_metric_symbol('MID_RHS_NOT_FQDN', 0.5, 'Message-ID RHS is not a fully-qualified domain name', 'default', 'Message ID') +rspamd_config:set_metric_symbol('MID_RHS_NOT_FQDN', 0.5, + 'Message-ID RHS is not a fully-qualified domain name', 'default', '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', 'default', 'Message ID') rspamd_config:register_virtual_symbol('MID_RHS_IP_LITERAL', 1.0, check_mid_id) @@ -85,7 +86,8 @@ rspamd_config:set_metric_symbol('MID_RHS_IP_LITERAL', 0.5, 'Message-ID RHS is an 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', 'default', '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', 0.0, 'Message-ID RHS matches From domain', 'default', 'Message ID') +rspamd_config:set_metric_symbol('MID_RHS_MATCH_FROM', 0.0, + 'Message-ID RHS matches From domain', 'default', 'Message ID') rspamd_config:register_virtual_symbol('MID_CONTAINS_TO', 1.0, check_mid_id) rspamd_config:set_metric_symbol('MID_CONTAINS_TO', 1.0, 'Message-ID contains To address', 'default', 'Message ID') rspamd_config:register_virtual_symbol('MID_RHS_MATCH_TO', 1.0, check_mid_id) |