Method EraseExpiredAsync
- Namespace
- MailFathom.Application.Rules.History
- Assembly
- MailFathom.Application.dll
EraseExpiredAsync(MailAccountId, CancellationToken)
Erases everything in one account's history that has outlived the configured window.
public Task<int> EraseExpiredAsync(MailAccountId accountId, CancellationToken cancellationToken)
Parameters
accountIdMailAccountIdThe account whose history is aged.
cancellationTokenCancellationTokenCancels the erasure.
Returns
Remarks
A window of zero or less names no boundary at all and erases nothing, which is how a deployment declares that it keeps its history until the mail it describes is erased and no longer.