aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorgami <tatsu.gami2573@gmail.com>2024-05-14 21:15:34 +0900
committergami <tatsu.gami2573@gmail.com>2024-05-14 21:15:34 +0900
commit0351e767fb76ccc8af9f09804b9a974469f7e52f (patch)
tree5ef187189ae421f4e592ca85aec7f9c3cb0bc540 /rules
parent5656826d263c4789a9b5732ecb2361255c0cf0f1 (diff)
downloadrspamd-0351e767fb76ccc8af9f09804b9a974469f7e52f.tar.gz
rspamd-0351e767fb76ccc8af9f09804b9a974469f7e52f.zip
[Minor] Exclude User-Agent: Mozilla Thunderbird from XM_UA_NO_VERSION
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua5
1 files 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'