Skip to content

Commit

Permalink
Add softfail as SPF fail condition
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Sep 8, 2023
1 parent 16e3c69 commit ffc669e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion froide/helper/email_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def check_spf(msgobj: EmailMessage) -> Optional[AuthenticityStatus]:
return AuthenticityStatus(
check=AuthenticityCheck.SPF,
status=status,
failed=status.lower() == "fail",
failed=status.lower() == "fail" or status.lower() == "softfail",
details=header,
)

Expand Down

0 comments on commit ffc669e

Please sign in to comment.