]> source.dussan.org Git - rspamd.git/commitdiff
Fix MISSING_MIMEOLE rule for modern OE
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Feb 2016 12:13:41 +0000 (12:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 16 Feb 2016 12:13:41 +0000 (12:13 +0000)
Issue: #514
Reported by: @ilyakruchinin

rules/regexp/headers.lua

index 394ad2373b1685d593e3a001ad487632c2cf9b33..437710163353363bb2f0e6d4c5cdbbca3170c2be 100644 (file)
@@ -356,7 +356,12 @@ local has_msmail_pri = 'header_exists(X-MSMail-Priority)'
 local has_mimeole = 'header_exists(X-MimeOLE)'
 local has_squirrelmail_in_mailer = 'X-Mailer=/SquirrelMail\\b/H'
 local has_ips_php_in_mailer = 'X-Mailer=/^IPS PHP Mailer/'
-reconf['MISSING_MIMEOLE'] = string.format('(%s) & !(%s) & !(%s) & !(%s) & !(%s) & !(%s)', has_msmail_pri, has_mimeole, has_squirrelmail_in_mailer, xm_mso12, xm_cgpmapi, has_ips_php_in_mailer)
+local has_office12145_in_mailer = 'X-Mailer=/^Microsoft (?:Office )?Outlook 1[245]\\.0/'
+reconf['MISSING_MIMEOLE'] = string.format('(%s) & !(%s) & !(%s) & !(%s) & !(%s) & !(%s) & !(%s)',
+  has_msmail_pri, has_mimeole,
+  has_squirrelmail_in_mailer, xm_mso12,
+  xm_cgpmapi, has_ips_php_in_mailer,
+  has_office12145_in_mailer)
 
 -- Header delimiters
 local yandex_from = 'From=/\\@(yandex\\.ru|yandex\\.net|ya\\.ru)/iX'