Skip to content

Commit

Permalink
Merge pull request #4600 from fatalbanana/missing_mimeole_fp
Browse files Browse the repository at this point in the history
[Fix] MISSING_MIMEOLE: avoid matching messages from Android GMail app (#4561)
  • Loading branch information
vstakhov committed Sep 15, 2023
2 parents 5413b5d + f66bd5a commit 073f82b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rules/regexp/headers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,14 @@ 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_office_version_in_mailer = [[X-Mailer=/^Microsoft (?:Office )?Outlook [12]\d\.0/]]
local has_x_android_message_id = 'header_exists(X-Android-Message-Id)'
reconf['MISSING_MIMEOLE'] = {
re = string.format('(%s) & !(%s) & !(%s) & !(%s)',
re = string.format('(%s) & !(%s) & !(%s) & !(%s) & !(%s)',
has_msmail_pri,
has_mimeole,
has_squirrelmail_in_mailer,
has_office_version_in_mailer),
has_office_version_in_mailer,
has_x_android_message_id),
score = 2.0,
description = 'Mime-OLE is needed but absent (e.g. fake Outlook or fake Exchange)',
group = 'headers'
Expand Down

0 comments on commit 073f82b

Please sign in to comment.