Skip to content

Commit

Permalink
actually save the tlsrpt results to database internetstandards#881
Browse files Browse the repository at this point in the history
  • Loading branch information
uwekamper committed Feb 12, 2024
1 parent 7c3518d commit 398912c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions checks/tasks/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,14 @@ def callback(results, addr, category):
tlsrpt_available = result.get("available")
tlsrpt_record = result.get("record")
tlsrpt_score = result.get("score")
# TODO: Pass results to mtauth and subtests
print("This is the callback for TLS-RPT.")

# Pass results to mtauth and subtests
mtauth.tlsrpt_available = tlsrpt_available
mtauth.tlsrpt_record = tlsrpt_record
mtauth.tlsrpt_score = tlsrpt_score
if spf_available:
subtests["tlsprt"].result_good(tlsrpt_record)


if skip_dkim_for_non_sending_domain(mtauth):
mtauth.dkim_score = scoring.MAIL_AUTH_DKIM_PASS
Expand Down

0 comments on commit 398912c

Please sign in to comment.