Table of Contents

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

account MailAccountId

The account the occurrence belongs to, which is the whole of what the read narrows on.

occurrenceId EmailOccurrenceId

The account, folder binding, UIDVALIDITY, and UID the message was discovered under.

cancellationToken CancellationToken

Cancels 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.