Method FindDeclarationRefusalAsync
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
FindDeclarationRefusalAsync(MailAccountId, CancellationToken)
Says why the account's own record takes no new folder from this caller, before the mail server is asked to make one.
Task<MailFolderActRefusal?> FindDeclarationRefusalAsync(MailAccountId accountId, CancellationToken cancellationToken)
Parameters
accountIdMailAccountIdThe account.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderActRefusal?>
The refusal, or null where the record takes one.
Remarks
A creation names no folder the account declares, so nothing AliasesTheAccountDeclaresAsync(MailAccountId, CancellationToken) answers refuses it, and its declaration is written only after the server has acted. This is therefore asked first: a list of folders a settings policy holds against the caller is FoldersHeldByPolicy while nothing has been made yet, rather than NotRecorded over a folder the account may never declare.