Kaynağa Gözat

[Minor] Update regexp for R_UNDISC_RCPT

Match more variations for undisclosed-recipients, but don't match when
it is used as a lame real name.
tags/2.7
Anton Yuzhaninov 3 yıl önce
ebeveyn
işleme
c31d5ddde3
1 değiştirilmiş dosya ile 10 ekleme ve 2 silme
  1. 10
    2
      rules/regexp/headers.lua

+ 10
- 2
rules/regexp/headers.lua Dosyayı Görüntüle

@@ -106,9 +106,17 @@ reconf['MISSING_TO'] = {
}

-- Detects undisclosed recipients
local undisc_rcpt = 'To=/^<?undisclosed[- ]recipient/Hi'
reconf['R_UNDISC_RCPT'] = {
re = string.format('(%s)', undisc_rcpt),
-- match:
-- To: undisclosed-recipients:;
-- To: Undisclosed recipients:;
-- To: undisclosed-recipients: ;
-- To: <Undisclosed-Recipient:;>
-- To: "undisclosed-recipients (utajeni adresati)": ;
-- To: Undisclosed recipients:
-- but do not match:
-- Undisclosed Recipient <user@example.org>
re = [[To=/^[<"]?undisclosed[- ]recipients?\b.*:/i{header}]],
score = 3.0,
description = 'Recipients are absent or undisclosed',
group = 'headers',

Loading…
İptal
Kaydet