Method FindAsync
- Namespace
- MailFathom.Application.Spam
- Assembly
- MailFathom.Application.dll
FindAsync(MailAccountId, StoredEmailId, CancellationToken)
Finds one stored email of one account.
Task<ClassifiableEmail?> FindAsync(MailAccountId account, StoredEmailId emailId, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account the classification runs for, whose mail alone the read may answer with.
emailIdStoredEmailIdThe stable local identifier.
cancellationTokenCancellationTokenCancels the lookup.
Returns
- Task<ClassifiableEmail>
The email, or null when that account holds nothing under that identifier.
Remarks
An absent email is an ordinary answer: mail can be erased between the moment classification was asked for and the moment it runs, and that is the message leaving rather than a failure to report. An email another account holds is answered the same way, because the account decides which settings, scope, and switches the verdict is reached and acted under, and a classification must never apply one mailbox's to another mailbox's mail.