fix subject not correctly decoded in spf-fail email
This commit is contained in:
parent
5fe48e4821
commit
4f211bba61
|
@ -1050,6 +1050,7 @@ def spf_pass(
|
||||||
r[0],
|
r[0],
|
||||||
ip,
|
ip,
|
||||||
)
|
)
|
||||||
|
subject = get_header_unicode(msg["Subject"])
|
||||||
send_email_with_rate_control(
|
send_email_with_rate_control(
|
||||||
user,
|
user,
|
||||||
ALERT_SPF,
|
ALERT_SPF,
|
||||||
|
@ -1062,7 +1063,7 @@ def spf_pass(
|
||||||
ip=ip,
|
ip=ip,
|
||||||
mailbox_url=URL + f"/dashboard/mailbox/{mailbox.id}#spf",
|
mailbox_url=URL + f"/dashboard/mailbox/{mailbox.id}#spf",
|
||||||
to_email=contact_email,
|
to_email=contact_email,
|
||||||
subject=msg["Subject"],
|
subject=subject,
|
||||||
time=arrow.now(),
|
time=arrow.now(),
|
||||||
),
|
),
|
||||||
render(
|
render(
|
||||||
|
@ -1072,7 +1073,7 @@ def spf_pass(
|
||||||
ip=ip,
|
ip=ip,
|
||||||
mailbox_url=URL + f"/dashboard/mailbox/{mailbox.id}#spf",
|
mailbox_url=URL + f"/dashboard/mailbox/{mailbox.id}#spf",
|
||||||
to_email=contact_email,
|
to_email=contact_email,
|
||||||
subject=msg["Subject"],
|
subject=subject,
|
||||||
time=arrow.now(),
|
time=arrow.now(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue