Method TryCreateForAddress
- Namespace
- MailFathom.Domain.Emails.Authentication
- Assembly
- MailFathom.Domain.dll
TryCreateForAddress(string?, out TrustedSenderEntry?)
Builds an entry that recognizes one mailbox.
public static bool TryCreateForAddress(string? address, out TrustedSenderEntry? entry)
Parameters
addressstringThe address text an operator or a reader supplied.
entryTrustedSenderEntryThe entry, when the text is an address this system compares on.
Returns
Remarks
The address is split the way every address in this system is, at the last at-sign, because a quoted local part may contain one. Its domain half is held in the same comparison form a domain entry's is, so an entry written in one encoding of an internationalized name recognizes a message that carried the other.