Skip to content

Commit

Permalink
[Fix] MISSING_MIMEOLE: avoid matching messages from Android GMail app (
Browse files Browse the repository at this point in the history
  • Loading branch information
fatalbanana committed Sep 14, 2023
1 parent 2f603c1 commit f66bd5a
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 f66bd5a

Please sign in to comment.