commit 0351e76: [Minor] Exclude User-Agent: Mozilla Thunderbird from XM_UA_NO_VERSION

gami tatsu.gami2573 at gmail.com
Mon Jul 29 17:56:53 UTC 2024


Author: gami
Date: 2024-05-14 21:15:34 +0900
URL: https://github.com/rspamd/rspamd/commit/0351e767fb76ccc8af9f09804b9a974469f7e52f

[Minor] Exclude User-Agent: Mozilla Thunderbird from XM_UA_NO_VERSION

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

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index d07d697de..571ce0b71 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -967,11 +967,12 @@ reconf['HAS_FILE_URL'] = {
 }
 
 reconf['XM_UA_NO_VERSION'] = {
-  re = string.format('(!%s && !%s) && (%s || %s)',
+  re = string.format('(!%s && !%s) && (%s || %s) !%s',
       'X-Mailer=/https?:/H',
       'User-Agent=/https?:/H',
       'X-Mailer=/^[^0-9]+$/H',
-      'User-Agent=/^[^0-9]+$/H'),
+      'User-Agent=/^[^0-9]+$/H'
+      'User-Agent=/^\\s*Mozilla Thunderbird/H'),
   description = 'X-Mailer/User-Agent header has no version number',
   score = 0.01,
   group = 'experimental'


More information about the Commits mailing list