This commit is contained in:
Son 2022-03-16 09:05:57 +01:00
parent 7e0992b767
commit 93009158a8
1 changed files with 2 additions and 2 deletions

View File

@ -2375,8 +2375,8 @@ def handle(envelope: Envelope, msg: Message) -> str:
[is_success for (is_success, smtp_status) in res if not is_success]
)
if nb_success > 0 and nb_non_success:
LOG.e(f"some deliveries fail and some success, {mail_from}, {rcpt_tos}")
if nb_success > 0 and nb_non_success > 0:
LOG.e(f"some deliveries fail and some success, {mail_from}, {rcpt_tos}, {res}")
for (is_success, smtp_status) in res:
# Consider all deliveries successful if 1 delivery is successful