mirror of
https://github.com/simple-login/app.git
synced 2025-11-11 10:20:32 +08:00
call forward_email_to_mailbox on the msg copy
This commit is contained in:
parent
5705842415
commit
c61e7c697d
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue