Parcourir la source

[Minor] Reduce scoring on some rules

tags/1.4.1
Andrew Lewis il y a 7 ans
Parent
révision
f63fa491d1
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1
    1
      rules/html.lua
  2. 1
    1
      rules/regexp/headers.lua

+ 1
- 1
rules/html.lua Voir le fichier

@@ -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 Voir le fichier

@@ -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'
}

Chargement…
Annuler
Enregistrer