commit 876a834: Adjust apple_x_mailer regex
GitHub
noreply at github.com
Thu Jul 13 14:49:04 UTC 2023
Author: Dmitriy Alekseev
Date: 2023-07-12 18:02:00 +0300
URL: https://github.com/rspamd/rspamd/commit/876a834378f78573c55d3b4386f393f8704c0dea (refs/pull/4539/head)
Adjust apple_x_mailer regex
---
rules/regexp/headers.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index cc4560600..b6b5e10d4 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]\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),
More information about the Commits
mailing list