Table of Contents

Method ReadStoredEmailAccountAsync

Namespace
MailFathom.Application.Access
Assembly
MailFathom.Application.dll

ReadStoredEmailAccountAsync(StoredEmailId, CancellationToken)

Reads the account one locally stored email belongs to.

Task<MailAccountId> ReadStoredEmailAccountAsync(StoredEmailId storedEmailId, CancellationToken cancellationToken)

Parameters

storedEmailId StoredEmailId

The stored email whose account is asked for.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<MailAccountId>

The account the message belongs to.

Remarks

Asked once per message rather than per provider call, because the answer cannot change while a message is being worked on and the call it precedes costs orders of magnitude more than the read.

Exceptions

InvalidOperationException

Thrown when no message is stored under that identifier.