Table of Contents

Method FindAsync

Namespace
MailFathom.Application.Mail.Mutations.Authoring
Assembly
MailFathom.Application.dll

FindAsync(StoredEmailId, CancellationToken)

Finds where one stored email is, or reports that this deployment holds no such row.

Task<AuthoredMailboxTarget?> FindAsync(StoredEmailId storedEmailId, CancellationToken cancellationToken)

Parameters

storedEmailId StoredEmailId

The email a caller named.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<AuthoredMailboxTarget>

The occurrence and its folder binding, or null when this deployment holds no occurrence to change under that identity.

Remarks

Two rows this deployment does hold answer as absent, and both exclusions belong here rather than to whichever adapter implements the read, because the caller turns either into the refusal a client is given. A tombstoned row answers as absent on the same terms every read of stored mail applies. So does a row whose remote occurrence the server has expunged, including a local copy retained after MailFathom deleted the message — a listing serves that one, because the mail is still readable, while the UID it carries names a message the server no longer holds, so a change recorded against it could only be attempted and fail.