add log when creating a new EmailLog

This commit is contained in:
Son NK 2021-05-24 12:08:30 +02:00
parent 159843a923
commit 3c6c3f7dbd
1 changed files with 2 additions and 0 deletions

View File

@ -595,6 +595,7 @@ def forward_email_to_mailbox(
email_log = EmailLog.create(
contact_id=contact.id, user_id=user.id, mailbox_id=mailbox.id, commit=True
)
LOG.d("Create %s for %s, %s, %s", email_log, contact, user, mailbox)
if ENABLE_SPAM_ASSASSIN:
# Spam check
@ -823,6 +824,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str):
mailbox_id=mailbox.id,
commit=True,
)
LOG.d("Create %s for %s, %s, %s", email_log, contact, user, mailbox)
# Spam check
if ENABLE_SPAM_ASSASSIN: