mirror of
https://github.com/simple-login/app.git
synced 2024-09-27 20:31:30 +02:00
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],
|
||||
ip,
|
||||
)
|
||||
subject = get_header_unicode(msg["Subject"])
|
||||
send_email_with_rate_control(
|
||||
user,
|
||||
ALERT_SPF,
|
||||
@ -1062,7 +1063,7 @@ def spf_pass(
|
||||
ip=ip,
|
||||
mailbox_url=URL + f"/dashboard/mailbox/{mailbox.id}#spf",
|
||||
to_email=contact_email,
|
||||
subject=msg["Subject"],
|
||||
subject=subject,
|
||||
time=arrow.now(),
|
||||
),
|
||||
render(
|
||||
@ -1072,7 +1073,7 @@ def spf_pass(
|
||||
ip=ip,
|
||||
mailbox_url=URL + f"/dashboard/mailbox/{mailbox.id}#spf",
|
||||
to_email=contact_email,
|
||||
subject=msg["Subject"],
|
||||
subject=subject,
|
||||
time=arrow.now(),
|
||||
),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user