Method CountUnmappedFoldersHoldingMailAsync
- Namespace
- MailFathom.Application.Synchronization.Restore
- Assembly
- MailFathom.Application.dll
CountUnmappedFoldersHoldingMailAsync(MailAccountId, CancellationToken)
Counts the account's local folders that hold mail and correspond to no folder mapping.
Task<int> CountUnmappedFoldersHoldingMailAsync(MailAccountId account, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Remarks
A local folder corresponds to a mapping by the source folder whose arrivals it receives. One a person created while the account was held receives none until an operator writes a mapping for it, and there is no folder on the source its mail could go back into — so the restore pauses rather than deriving a source path from a local name, which is the one thing ADR 0034 never permits.