save the mailbox that a bounce affects

This commit is contained in:
Son NK 2020-05-10 18:35:13 +02:00
parent 0f09ef681c
commit 0d117126db
1 changed files with 1 additions and 0 deletions

View File

@ -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)