Method FindStoredEmailIdAsync
- Namespace
- MailFathom.Application.Spam
- Assembly
- MailFathom.Application.dll
FindStoredEmailIdAsync(MailAccountId, EmailOccurrenceId, CancellationToken)
Resolves the stable remote occurrence identity into the local email it was stored as.
Task<StoredEmailId?> FindStoredEmailIdAsync(MailAccountId account, EmailOccurrenceId occurrenceId, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account the occurrence belongs to, which is the whole of what the read narrows on.
occurrenceIdEmailOccurrenceIdThe account, folder binding, UIDVALIDITY, and UID the message was discovered under.
cancellationTokenCancellationTokenCancels the lookup.
Returns
- Task<StoredEmailId?>
The local identity, or null when nothing is stored at that occurrence.
Remarks
A durable execution names the occurrence rather than the local key, because the local key is a value this system generated and the occurrence is what the mail server and the enqueuer both know. This is where the one is turned into the other, and an absent answer is the ordinary case of a message expunged between the moment the work was enqueued and the moment it ran.