call forward_email_to_mailbox on the msg copy
This commit is contained in:
parent
5705842415
commit
c61e7c697d
|
@ -82,6 +82,7 @@ from app.email_utils import (
|
||||||
parseaddr_unicode,
|
parseaddr_unicode,
|
||||||
send_email_with_rate_control,
|
send_email_with_rate_control,
|
||||||
get_email_domain_part,
|
get_email_domain_part,
|
||||||
|
copy,
|
||||||
)
|
)
|
||||||
from app.extensions import db
|
from app.extensions import db
|
||||||
from app.greylisting import greylisting_needed
|
from app.greylisting import greylisting_needed
|
||||||
|
@ -391,7 +392,7 @@ def handle_forward(
|
||||||
for mailbox in alias.mailboxes:
|
for mailbox in alias.mailboxes:
|
||||||
ret.append(
|
ret.append(
|
||||||
forward_email_to_mailbox(
|
forward_email_to_mailbox(
|
||||||
alias, msg, email_log, contact, envelope, smtp, mailbox, user
|
alias, copy(msg), email_log, contact, envelope, smtp, mailbox, user
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue