Table of Contents

Method Evaluate

Namespace
MailFathom.Domain.Emails.Authentication
Assembly
MailFathom.Domain.dll

Evaluate(SenderAuthentication, EmailAddress?)

Decides what this deployment makes of one message's author.

public SenderTrust Evaluate(SenderAuthentication authentication, EmailAddress? displayedSender)

Parameters

authentication SenderAuthentication

What the receiving mail server established about the message.

displayedSender EmailAddress?

The address the message's From header displays, where it wrote a usable one.

Returns

SenderTrust

The verdict, always carrying Revision.

Remarks

The subject of the decision is AuthenticatedAuthorDomain and nothing else. The From header on its own is written by whoever sent the message, so holding it against a list would let anybody be recognized by claiming to be; and the identity the receiving server happened to authenticate belongs to whoever handed the message over, which for a relay, a mailing list, or a delivery provider is not the author at all. Recognizing a provider one correspondent uses would otherwise recognize every message that provider ever relays, whoever it says wrote them.

So a message whose author was not established, and one whose author authentication the receiving server refused, both reach Unknown without the list being consulted at all. Which of the two it was stays on AuthorAuthentication, where it was recorded, because this verdict answers only about the list.

Exceptions

ArgumentNullException

Thrown when authentication is null.