Fix subject
This commit is contained in:
parent
78f5f27d5d
commit
4d03d2fe04
|
@ -699,11 +699,12 @@ def forward_email_to_mailbox(
|
||||||
LOG.d("Encrypt message using mailbox %s", mailbox)
|
LOG.d("Encrypt message using mailbox %s", mailbox)
|
||||||
if mailbox.generic_subject:
|
if mailbox.generic_subject:
|
||||||
LOG.d("Use a generic subject for %s", mailbox)
|
LOG.d("Use a generic subject for %s", mailbox)
|
||||||
|
orig_subject = msg["Subject"]
|
||||||
add_or_replace_header(msg, "Subject", mailbox.generic_subject)
|
add_or_replace_header(msg, "Subject", mailbox.generic_subject)
|
||||||
msg = add_header(
|
msg = add_header(
|
||||||
msg,
|
msg,
|
||||||
f"""Forwarded by SimpleLogin to {alias.email} with "{msg["Subject"]}" as subject""",
|
f"""Forwarded by SimpleLogin to {alias.email} with "{orig_subject}" as subject""",
|
||||||
f"""Forwarded by SimpleLogin to {alias.email} with <b>{msg["Subject"]}</b> as subject""",
|
f"""Forwarded by SimpleLogin to {alias.email} with <b>{orig_subject}</b> as subject""",
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue