Class PlannedMailRuleAction
- Namespace
- MailFathom.Application.Rules.Actions
- Assembly
- MailFathom.Application.dll
One action a pass will ask the mailbox for, and the rule that asked.
public sealed record PlannedMailRuleAction : IEquatable<PlannedMailRuleAction>
- Inheritance
-
PlannedMailRuleAction
- Implements
- Inherited Members
Remarks
The rule name travels with the action because it is half of the request's idempotency identity: the same rule asking again for the same email is the same request, and a different rule asking for the same change is a different one. It carries no mail content, being MailFathom's own configured name for the rule.
The position is the rule's own, not the plan's. A plan reorders across rules so that a flag is written before the occurrence carrying it is moved, so the plan's order says when a change is applied while this says which of the rule's declared changes it is — which is what a record of the decision has to name it by.
Constructors
- PlannedMailRuleAction(string, MailRuleAction, int)
One action a pass will ask the mailbox for, and the rule that asked.
Properties
- Action
The change asked for.
- Position
Where the action sits in the order its own rule declares its changes, counted from zero.
- RuleName
The name of the rule the action was declared on, which is what the request is identified by.