commit a4cfe5e: [Rules] Extend OLD_X_MAILER

Anton Yuzhaninov citrin+git at citrin.ru
Sun May 23 20:56:05 UTC 2021


Author: Anton Yuzhaninov
Date: 2021-05-22 16:36:45 +0100
URL: https://github.com/rspamd/rspamd/commit/a4cfe5e270ef6fbe28bdcb1ddf2776f8f043c7cc (refs/pull/3763/head)

[Rules] Extend OLD_X_MAILER
Add more old iPhone/iPad Mail versions to the regexp.

---
 rules/regexp/headers.lua | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 26762b06e..a11ab85a2 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -962,9 +962,10 @@ local old_x_mailers = {
   [[Microsoft Outlook IMO, Build 9\.0\.]],
   -- Outlook 2002 (Office XP)
   [[Microsoft Outlook, Build 10\.]],
-  -- Some old Apple iOS version are used on old devices, so instead of matching
-  -- all old versions, match only versions seen in spam
-  [[i(Phone|Pad) Mail \((?:12[A-Z]|13E)]],
+  -- Some old Apple iOS versions are used on old devices, match only very old
+  -- versions (iOS 4.3.5 buid 8L1 was supported until 2013) and less old
+  -- versions frequently seen in spam
+  [[i(Phone|Pad) Mail \((?:[1-8][A-L]|12H|13E)]],
 }
 
 reconf['OLD_X_MAILER'] = {


More information about the Commits mailing list