Table of Contents

Method ReadAsync

Namespace
MailFathom.Application.Folders.Local
Assembly
MailFathom.Application.dll

ReadAsync(MailAccountId, CancellationToken)

Reads the caller's account's phase and live folders, supplying the protected folders a held account lacks.

public Task<LocalMailFolderHolding?> ReadAsync(MailAccountId account, CancellationToken cancellationToken)

Parameters

account MailAccountId

The caller's account.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<LocalMailFolderHolding>

The holding, or null where the caller holds no such account.

Remarks

The protected folders are written rather than only shown, so the identities a client reads are the ones every later act and arrival finds; a read of a hierarchy that already has them writes nothing.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold mailfathom.mail.read.