Interface IEmailEnricher
- Namespace
- MailFathom.Application.Emails.Enrichment
- Assembly
- MailFathom.Application.dll
Derives what one message is about, why it may matter, and any commitment it contains.
public interface IEmailEnricher
Remarks
The one way a message becomes a set of marks. An implementation is registered for every deployment, including one that has turned enrichment off — the answer a caller needs is a reason it can act on, and a missing registration would have made every caller carry a null check and decide for itself what an absence meant.
It never throws for a provider that failed. Every way a derivation can come to nothing is a member of EmailEnrichmentWithholding, because the caller's response to each of them is the same shape — leave the message outstanding and stop — and an exception would have made an ordinary outage look like a defect in the pass. Caller cancellation is the exception to that and propagates, being the caller withdrawing the work rather than anything about the message.
Properties
- IsActive
Gets whether this deployment derives marks at all.
Methods
- DeriveAsync(EnrichableEmail, MailAccountLanguage, CancellationToken)
Derives one message's marks, written in the language the mailbox they were found in is read in.