Table of Contents

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

headers IReadOnlyList<AuthenticationResultsHeader>

Every Authentication-Results header the message carried, topmost first.

authority TrustedAuthenticationAuthority

The one server this account believes, which may name none.

Returns

bool

true when a header this account trusts was found; otherwise false.

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 headers is null.