diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-13 15:48:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 15:48:46 +0100 |
commit | 0cb74ca3b1675aecee9729bcd7426d31b06ee28f (patch) | |
tree | dd9dfb46ce6d79d031a603471bdf0592484af6eb | |
parent | 14d450b19225a5362154f036cb24d101a0c23a57 (diff) | |
parent | 876a834378f78573c55d3b4386f393f8704c0dea (diff) | |
download | rspamd-0cb74ca3b1675aecee9729bcd7426d31b06ee28f.tar.gz rspamd-0cb74ca3b1675aecee9729bcd7426d31b06ee28f.zip |
Merge pull request #4539 from dragoangel/patch-3
[Minor] A bit better apple_x_mailer regex
-rw-r--r-- | rules/regexp/headers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 85d6cfcfd..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]\.[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,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), |