diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-08-31 10:22:52 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-08-31 10:22:52 +0200 |
commit | 28866f60631a43caa580686d11731e51587d2e5a (patch) | |
tree | 587be224bc643d859a58c50ef71d87bc259d69eb /rules/html.lua | |
parent | dacfdb076ba21ef1c3be5c9d7bb87723f74d952b (diff) | |
download | rspamd-28866f60631a43caa580686d11731e51587d2e5a.tar.gz rspamd-28866f60631a43caa580686d11731e51587d2e5a.zip |
[Minor] Finish reworking rules
Diffstat (limited to 'rules/html.lua')
-rw-r--r-- | rules/html.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua index e1fdb6b73..f81fc56ef 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -18,7 +18,12 @@ local rspamd_regexp = require "rspamd_regexp" local rspamd_logger = require "rspamd_logger" -- Messages that have only HTML part -reconf['MIME_HTML_ONLY'] = 'has_only_html_part()' +reconf['MIME_HTML_ONLY'] = { + re = 'has_only_html_part()', + score = 0.2, + description = 'Messages that have only HTML part', + group = 'header' +} local function check_html_image(task, min, max) local tp = task:get_text_parts() |