From 0d117126db4ea3dcedcf65cc078a8c42fd79438b Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sun, 10 May 2020 18:35:13 +0200 Subject: [PATCH] save the mailbox that a bounce affects --- email_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/email_handler.py b/email_handler.py index 50f4d36b..ffa819f3 100644 --- a/email_handler.py +++ b/email_handler.py @@ -728,6 +728,7 @@ def handle_bounce(contact: Contact, alias: Alias, msg: Message, user: User): db.session.flush() email_log.refused_email_id = refused_email.id + email_log.bounced_mailbox_id = mailbox.id db.session.commit() LOG.d("Create refused email %s", refused_email)