From 0351e767fb76ccc8af9f09804b9a974469f7e52f Mon Sep 17 00:00:00 2001 From: gami Date: Tue, 14 May 2024 21:15:34 +0900 Subject: [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' -- cgit v1.2.3