Enum MailRuleOutcome
- Namespace
- MailFathom.Application.Rules
- Assembly
- MailFathom.Application.dll
What one rule concluded about one email.
public enum MailRuleOutcome
Fields
Failed = 2The condition produced no answer, and the reason is recorded beside this.
Matched = 0The condition answered that the email matches.
NotMatched = 1The condition answered that the email does not match.
Remarks
Three values rather than a boolean, because a rule that could not be evaluated is neither of the other two. Folding it into either would be the silent failure this whole contract exists to prevent: into a match, and a rule acts on mail it never actually matched; into a non-match, and a rule that has stopped working looks exactly like a rule nothing matches.