Method Read
- Namespace
- MailFathom.Domain.Emails.Authentication
- Assembly
- MailFathom.Domain.dll
Read(IReadOnlyList<AuthenticationResultsHeader>, TrustedAuthenticationAuthority, string?)
Reads the verdict one message's headers support.
public static SenderAuthentication Read(IReadOnlyList<AuthenticationResultsHeader> headers, TrustedAuthenticationAuthority authority, string? displayedSenderAddress)
Parameters
headersIReadOnlyList<AuthenticationResultsHeader>Every
Authentication-Resultsheader the message carried, topmost first.authorityTrustedAuthenticationAuthorityThe one server this account believes, which may name none.
displayedSenderAddressstringThe address the message's
Fromheader wrote, where it wrote one.
Returns
- SenderAuthentication
The verdict, which is the not-established one wherever nothing trusted could be read.
Exceptions
- ArgumentNullException
Thrown when
headersis null.