From 17e2d76daeec1f3b34a2a64da0167a2b2fb3f6c2 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 4 Feb 2025 09:50:59 +0100 Subject: [PATCH] [FIX] mail_composer_cc_bcc: update upstream override --- mail_composer_cc_bcc/models/mail_mail.py | 5 ++++- mail_composer_cc_bcc/tests/test_mail_cc_bcc.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mail_composer_cc_bcc/models/mail_mail.py b/mail_composer_cc_bcc/models/mail_mail.py index 29ab4d6e3f..9755f18fd7 100644 --- a/mail_composer_cc_bcc/models/mail_mail.py +++ b/mail_composer_cc_bcc/models/mail_mail.py @@ -197,9 +197,12 @@ def _send( # noqa: max-complexity: 4 {"state": "sent", "message_id": res, "failure_reason": False} ) _logger.info( - "Mail with ID %r and Message-Id %r successfully sent", + "Mail with ID %r and Message-Id %r from %r to (redacted) %r " + "successfully sent", mail.id, mail.message_id, + tools.email_normalize(msg["from"]), + tools.mail.email_anonymize(tools.email_normalize(msg["to"])), ) # /!\ can't use mail.state here, as mail.refresh() will cause an error # see revid:odo@openerp.com-20120622152536-42b2s28lvdv3odyr in 6.1 diff --git a/mail_composer_cc_bcc/tests/test_mail_cc_bcc.py b/mail_composer_cc_bcc/tests/test_mail_cc_bcc.py index fb0751cc03..37daa946f1 100644 --- a/mail_composer_cc_bcc/tests/test_mail_cc_bcc.py +++ b/mail_composer_cc_bcc/tests/test_mail_cc_bcc.py @@ -16,6 +16,7 @@ "5d1ab352416f5074e131f35f20098d5b", "46172c91183f2cb50b22a6b3b5e3869b", "8f26c4084cc7fc300e64d19ccdc944fe", + "db6cc0d3513a0c85bd716e4cb0a4d09c", ]