From: gami Date: Tue, 14 May 2024 12:19:30 +0000 (+0900) Subject: [Minor] Exclude User-Agent: Mozilla Thunderbird from XM_UA_NO_VERSION X-Git-Tag: 3.9.0~36^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9f5570676f8abe5950493f5e772e87a14481a52;p=rspamd.git [Minor] Exclude User-Agent: Mozilla Thunderbird from XM_UA_NO_VERSION --- 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',