Table of Contents

Enum MailRuleFactType

Namespace
MailFathom.Application.Rules.Facts
Assembly
MailFathom.Application.dll

Names the shape of value a fact carries, which is what a condition is type-checked against when it is read.

public enum MailRuleFactType

Fields

Boolean = 3

A boolean, which is never absent.

Number = 2

A number, which may be absent.

Text = 0

A single string, which may be absent.

TextSet = 1

A bounded set of strings, which is tested for membership rather than compared.

Timestamp = 4

An instant in time, which may be absent and is always in UTC.

Remarks

The set is what makes authoring-time type checking possible at all. A condition language with no static type checker would otherwise discover that a subject was compared to a number on live mail, so every fact declares its shape here and the walk that validates an expression judges every comparison, operator, and argument against it.