]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Exclude User-Agent: Mozilla Thunderbird from XM_UA_NO_VERSION
authorgami <tatsu.gami2573@gmail.com>
Tue, 14 May 2024 12:19:30 +0000 (21:19 +0900)
committergami <tatsu.gami2573@gmail.com>
Tue, 14 May 2024 12:19:30 +0000 (21:19 +0900)
rules/regexp/headers.lua

index 571ce0b713f11c73d886b5c8517dfa51e04054a2..fd1c966ad447750bf64b450b606507f7da955797 100644 (file)
@@ -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',