aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>2023-07-12 14:00:25 +0300
committerGitHub <noreply@github.com>2023-07-12 14:00:25 +0300
commit7bed05f8f64cc52e070ded3f81f1e8918918c12c (patch)
treee524eae9a9de129869cc0b1bf0c3550306730a20
parent14d450b19225a5362154f036cb24d101a0c23a57 (diff)
downloadrspamd-7bed05f8f64cc52e070ded3f81f1e8918918c12c.tar.gz
rspamd-7bed05f8f64cc52e070ded3f81f1e8918918c12c.zip
[Minor] A bit better apple_x_mailer regex
-rw-r--r--rules/regexp/headers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 85d6cfcfd..cc4560600 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -964,7 +964,7 @@ reconf['OLD_X_MAILER'] = {
}
-- Detect Apple Mail
-local apple_x_mailer = [[Apple Mail \(((Version )?[1-9]\.[0-9]*|[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*)\)]]
+local apple_x_mailer = [[Apple Mail \((?:(?:Version )?[1-9]\d{0,2}\.\d{1,3}|[1-9]\d{0,2}\.\d{1,3}\.\d{1,3}\.\d{1,3})\)]]
reconf['APPLE_MAILER'] = {
description = 'Sent with Apple Mail',
re = string.format('X-Mailer=/^%s/{header}', apple_x_mailer),