Problem/Motivation

When an email is excluded as a sensitive email it is never sent because in inc/hooks.php there $message['send'] = FALSE; which prevent the email to be sent without honoring the $send parameter of the MailManager.

Proposed resolution

We could simply remove the offending line.

Comments

Aerzas created an issue. See original summary.

aerzas’s picture

Title: Excluded sensitives e-mails are not sent » Excluded sensitive e-mails are not sent
aerzas’s picture

Here is the proposed patch.

aerzas’s picture

Status: Active » Needs review
wengerk’s picture

StatusFileSize
new2.33 KB
new2.33 KB

Many thanks for your patch !!!

Sorry to no giving you any answer before, I was pretty busy with all that covid stuff around here.
Anyway, here is another patch with a tests. And a Test only (should-fail) file to ensure everything works fine and we properly fix an issue.

wengerk’s picture

StatusFileSize
new1.33 KB
new2.9 KB
new2.86 KB

... would be better with the proper tests ...

  • wengerk committed 277b3ce on 8.x-2.x
    Issue #3168259 by wengerk, Aerzas: Excluded sensitive e-mails are not...
wengerk’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.