Fix: Also replace source mailbox to alias when replacing stuff in the reply phase (#1432)
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
This commit is contained in:
parent
d2360d1a99
commit
0fbe576c44
|
@ -1125,8 +1125,9 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str):
|
||||||
# as this is usually included when replying
|
# as this is usually included when replying
|
||||||
if user.replace_reverse_alias:
|
if user.replace_reverse_alias:
|
||||||
LOG.d("Replace reverse-alias %s by contact email %s", reply_email, contact)
|
LOG.d("Replace reverse-alias %s by contact email %s", reply_email, contact)
|
||||||
|
|
||||||
msg = replace(msg, reply_email, contact.website_email)
|
msg = replace(msg, reply_email, contact.website_email)
|
||||||
|
LOG.d("Replace mailbox %s by alias email %s", mailbox.email, alias.email)
|
||||||
|
msg = replace(msg, mailbox.email, alias.email)
|
||||||
|
|
||||||
if config.ENABLE_ALL_REVERSE_ALIAS_REPLACEMENT:
|
if config.ENABLE_ALL_REVERSE_ALIAS_REPLACEMENT:
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
Loading…
Reference in a new issue