Browse Source

[Minor] Reduce scoring on some rules

tags/1.4.1
Andrew Lewis 7 years ago
parent
commit
f63fa491d1
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      rules/html.lua
  2. 1
    1
      rules/regexp/headers.lua

+ 1
- 1
rules/html.lua View File

@@ -59,7 +59,7 @@ rspamd_config.HTML_SHORT_LINK_IMG_1 = {
callback = function(task)
return check_html_image(task, 0, 1024)
end,
score = 3.0,
score = 2.0,
group = 'html',
description = 'Short html part (0..1K) with a link to an image'
}

+ 1
- 1
rules/regexp/headers.lua View File

@@ -66,7 +66,7 @@ local r_cte_7bit = 'compare_transfer_encoding(7bit)'
local r_body_8bit = '/[^\\x01-\\x7f]/Qr'
reconf['R_BAD_CTE_7BIT'] = {
re = string.format('(%s) & (%s) & (%s)', r_ctype_text, r_cte_7bit, r_body_8bit),
score = 3.0,
score = 2.0,
description = 'Detects bad content-transfer-encoding for text parts',
group = 'header'
}

Loading…
Cancel
Save