Table of Contents

Method WithdrawAsync

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

WithdrawAsync(MailAccountId, MailFolderAlias, CancellationToken)

Withdraws a folder from what the account declares, which takes it out of everything MailFathom reads.

Task<MailFolderDeclarationOutcome> WithdrawAsync(MailAccountId accountId, MailFolderAlias folderAlias, CancellationToken cancellationToken)

Parameters

accountId MailAccountId

The account.

folderAlias MailFolderAlias

The alias the folder is declared under.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderDeclarationOutcome>

What the write did.

Remarks

A withdrawn folder leaves the tree, leaves what the account synchronizes, and leaves every mailbox query, because a folder is readable by being declared rather than by not being mentioned. Whether the mail stored from it is also removed is the account's deletion setting and is decided by the caller, not here.