Explorar el Código

[Minor] Add rule for messages missing both X-Mailer and User-Agent header

tags/3.7.4
twesterhever hace 6 meses
padre
commit
be0bc2701e
No account linked to committer's email address
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10
    0
      rules/regexp/headers.lua

+ 10
- 0
rules/regexp/headers.lua Ver fichero

@@ -949,6 +949,16 @@ reconf['XM_UA_NO_VERSION'] = {
group = 'experimental'
}

-- Detects messages missing both X-Mailer and User-Agent header
local has_ua = 'header_exists(User-Agent)'
local has_xmailer = 'header_exists(X-Mailer)'
reconf['MISSING_XM_UA'] = {
re = string.format('!%s && !%s', has_xmailer, has_ua),
score = 0.0,
description = 'Message has neither X-Mailer nor User-Agent header',
group = 'headers',
}

-- X-Mailer for old MUA versions which are forged by spammers
local old_x_mailers = {
-- Outlook Express 6.0 was last included in Windows XP (EOL 2014). Windows

Cargando…
Cancelar
Guardar