call forward_email_to_mailbox on the msg copy

This commit is contained in:
Son NK 2020-06-12 00:02:45 +02:00
parent 5705842415
commit c61e7c697d
1 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@ from app.email_utils import (
parseaddr_unicode,
send_email_with_rate_control,
get_email_domain_part,
copy,
)
from app.extensions import db
from app.greylisting import greylisting_needed
@ -391,7 +392,7 @@ def handle_forward(
for mailbox in alias.mailboxes:
ret.append(
forward_email_to_mailbox(
alias, msg, email_log, contact, envelope, smtp, mailbox, user
alias, copy(msg), email_log, contact, envelope, smtp, mailbox, user
)
)