Method FindsTrustedStatement
- Namespace
- MailFathom.Domain.Emails.Authentication
- Assembly
- MailFathom.Domain.dll
FindsTrustedStatement(IReadOnlyList<AuthenticationResultsHeader>, TrustedAuthenticationAuthority)
Answers whether the account's trusted server wrote a statement about this message at all.
public static bool FindsTrustedStatement(IReadOnlyList<AuthenticationResultsHeader> headers, TrustedAuthenticationAuthority authority)
Parameters
headersIReadOnlyList<AuthenticationResultsHeader>Every
Authentication-Resultsheader the message carried, topmost first.authorityTrustedAuthenticationAuthorityThe one server this account believes, which may name none.
Returns
Remarks
This is the condition local verification is a fallback for, and it deliberately asks whether a trusted statement exists rather than whether it established anything. A server that evaluated the message and reported a failure has spoken about it with network context nothing here can recover, so verifying the same message again locally would put a second verdict of a different provenance beside the first — which is exactly what recording only one of them, from the stronger position, avoids.
Exceptions
- ArgumentNullException
Thrown when
headersis null.