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

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


Author: gami
Date: 2024-05-14 21:19:30 +0900
URL: https://github.com/rspamd/rspamd/commit/d9f5570676f8abe5950493f5e772e87a14481a52

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

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

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 571ce0b71..fd1c966ad 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -967,7 +967,7 @@ reconf['HAS_FILE_URL'] = {
 }
 
 reconf['XM_UA_NO_VERSION'] = {
-  re = string.format('(!%s && !%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',


More information about the Commits mailing list