Skip to content

Commit

Permalink
[Minor] A bit better apple_x_mailer regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoangel committed Jul 12, 2023
1 parent 14d450b commit 7bed05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/regexp/headers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7bed05f

Please sign in to comment.