Table of Contents

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

accountId MailAccountId

The account whose history is aged.

cancellationToken CancellationToken

Cancels the erasure.

Returns

Task<int>

How many executions were erased.

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.