]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another fix for MISSING_MIMEOLE
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Aug 2018 11:06:07 +0000 (12:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 13 Aug 2018 11:06:43 +0000 (12:06 +0100)
Issue: #514

rules/regexp/headers.lua

index 3daa58c4810ef03adfba38f5b0cd7753feba5a82..4889c0e7ff11dfbb29c8072f1e8aef931db7b6b7 100644 (file)
@@ -656,13 +656,13 @@ reconf['FAKE_REPLY_C'] = {
 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_office12145_in_mailer = 'X-Mailer=/^Microsoft (?:Office )?Outlook 1[245]\\.0/'
+local has_office_version_in_mailer = [[X-Mailer=/^Microsoft (?:Office )?Outlook [12]\d\.0/]]
 reconf['MISSING_MIMEOLE'] = {
   re = string.format('(%s) & !(%s) & !(%s) & !(%s)',
       has_msmail_pri,
       has_mimeole,
       has_squirrelmail_in_mailer,
-      has_office12145_in_mailer),
+      has_office_version_in_mailer),
   score = 2.0,
   description = 'Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange)',
   group = 'header'