Class MailRuleEvaluationOptions
- Namespace
- MailFathom.Application.Rules.Evaluation
- Assembly
- MailFathom.Application.dll
Bounds how much of an account's mail one evaluation pass takes in hand.
public sealed class MailRuleEvaluationOptions
- Inheritance
-
MailRuleEvaluationOptions
- Inherited Members
Remarks
Neither setting is a schedule. Evaluation is a step of the account's synchronization run, so how often a pass happens is that run's interval and its backoff; what is configured here is how wide one pass is allowed to be, which is what stops a mailbox that has never been evaluated from turning one run into a walk of its whole history while the folders the run exists to fetch wait behind it.
The two bounds apply to each of the pass's two walks separately, because they answer the same question about different work: an account that has just been given its first rule set has a long arrival queue and no requested run, and an account whose owner asked for a re-run has the opposite. Sharing one budget between them would let either one starve the other for as many runs as it took to drain.
Properties
- BatchSize
Gets or sets how many stored emails one batch reads, evaluates, and commits together.
- HistoryRetention
Gets or sets how long a recorded rule execution is kept before the account's next run erases it.
- MaxBatchesPerPass
Gets or sets how many batches one walk of one pass may commit before it leaves the rest to the next run.