commit 84b0676: [Minor] Account for one more undisclosed-recipients address variant

Anton Yuzhaninov citrin+git at citrin.ru
Sat Feb 25 15:00:04 UTC 2023


Author: Anton Yuzhaninov
Date: 2023-02-25 11:01:30 +0000
URL: https://github.com/rspamd/rspamd/commit/84b0676210055e69c3fb29d419807136a11c17f6 (refs/pull/4413/head)

[Minor] Account for one more undisclosed-recipients address variant

---
 rules/regexp/headers.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index a2b95c2c7..6be69f6a8 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -112,11 +112,12 @@ reconf['R_UNDISC_RCPT'] = {
   -- To: Undisclosed recipients:;
   -- To: undisclosed-recipients: ;
   -- To: <Undisclosed-Recipient:;>
+  -- To: <"Undisclosed-Recipient:;">
   -- To: "undisclosed-recipients (utajeni adresati)": ;
   -- To: Undisclosed recipients:
   -- but do not match:
   -- Undisclosed Recipient <user at example.org>
-  re = [[To=/^[<"]?undisclosed[- ]recipients?\b.*:/i{header}]],
+  re = [[To=/^<?"?undisclosed[- ]recipients?\b.*:/i{header}]],
   score = 3.0,
   description = 'Recipients are absent or undisclosed',
   group = 'headers',


More information about the Commits mailing list