浏览代码

save the mailbox that a bounce affects

Son NK 5 年之前
父节点
当前提交
0d117126db
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      email_handler.py

+ 1 - 0
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)