Explorar el Código

[Feature] Improve URL_IN_SUBJECT rule

We penalise now this rule's weight when URL found has no schema.
tags/1.7.3
Vsevolod Stakhov hace 6 años
padre
commit
c949b41dd7
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      rules/misc.lua

+ 5
- 1
rules/misc.lua Ver fichero

@@ -393,7 +393,11 @@ rspamd_config.URL_IN_SUBJECT = {

if urls then
for _,u in ipairs(urls) do
if u:is_subject() then
local flags = u:get_flags()
if flags.subject then
if flags.schemaless then
return true,0.1,u:get_host()
end
local subject = task:get_subject()

if subject then

Cargando…
Cancelar
Guardar