Method Read
- Namespace
- MailFathom.Domain.Emails.Authentication
- Assembly
- MailFathom.Domain.dll
Read(IReadOnlyList<SenderDomain>, bool, string?)
Reads the verdict one message's locally checked signatures support.
public static SenderAuthentication Read(IReadOnlyList<SenderDomain> verifiedSigningDomains, bool anySignatureRejected, string? displayedSenderAddress)
Parameters
verifiedSigningDomainsIReadOnlyList<SenderDomain>The domain of every signature that verified, in the order the message carried them.
anySignatureRejectedboolWhether a signature was checked against a key that resolved and did not verify. It separates a failure from silence, exactly as an attempted-and-failed method does in the trusted reading: a key that could not be resolved is not a rejection and must not be reported as one.
displayedSenderAddressstringThe address the message's
Fromheader wrote, where it wrote one.
Returns
- SenderAuthentication
The verdict, which names LocalVerification whatever it says.
Exceptions
- ArgumentNullException
Thrown when
verifiedSigningDomainsis null.