diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-26 14:41:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-26 14:41:40 +0000 |
commit | 2708a3ba19620c3f8f180f26ca39a92969484804 (patch) | |
tree | 20509ceefeb2106193a1d7cfbfda8b63293f44ba /rules/regexp | |
parent | 103a5177d6a98b2b2645c6fcf71cc44eba12be29 (diff) | |
download | rspamd-2708a3ba19620c3f8f180f26ca39a92969484804.tar.gz rspamd-2708a3ba19620c3f8f180f26ca39a92969484804.zip |
[Config] Add groups for message id rules
Diffstat (limited to 'rules/regexp')
-rw-r--r-- | rules/regexp/misc.lua | 7 |
1 files changed, 5 insertions, 2 deletions
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 = '/<meta\\s+http-equiv="refresh"\\s+content="\\d+;url=/{sa_raw_body}i', description = "Has HTML Meta refresh URL", - score = 5.0 + score = 5.0, + group = 'HTML' } reconf['HAS_DATA_URI'] = { -- Requires options { check_attachements = true; } re = '/data:[^\\/]+\\/[^; ]+;base64,/{sa_raw_body}i', - description = "Has Data URI encoding" + description = "Has Data URI encoding", + group = 'HTML' } reconf['DATA_URI_OBFU'] = { -- Requires options { check_attachements = true; } re = '/data:text\\/(?:plain|html);base64,/{sa_raw_body}i', description = "Uses Data URI encoding to obfuscate plain or HTML in base64", + group = 'HTML', score = 2.0 } |