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
accountIdMailAccountIdThe account.
folderAliasMailFolderAliasThe alias the folder is declared under.
cancellationTokenCancellationTokenPropagates 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.