]> source.dussan.org Git - rspamd.git/commitdiff
Adjust apple_x_mailer regex 4539/head
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Wed, 12 Jul 2023 15:02:00 +0000 (18:02 +0300)
committerGitHub <noreply@github.com>
Wed, 12 Jul 2023 15:02:00 +0000 (18:02 +0300)
rules/regexp/headers.lua

index cc4560600423f7c869e978921a2ab32a8c82e34e..b6b5e10d4ef776b59b45677e102d1f6d0da6ba95 100644 (file)
@@ -964,7 +964,7 @@ reconf['OLD_X_MAILER'] = {
 }
 
 -- Detect Apple Mail
-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})\)]]
+local apple_x_mailer = [[Apple Mail \((?:(?:Version )?[1-9]\d{0,2}\.\d{1,3}|[1-9]\d{0,2}\.\d{1,4}\.\d{1,4}\.\d{1,4})\)]]
 reconf['APPLE_MAILER'] = {
   description = 'Sent with Apple Mail',
   re = string.format('X-Mailer=/^%s/{header}', apple_x_mailer),