Table of Contents

Method Matched

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

Matched(string, IReadOnlyList<MailRuleFact>?, TimeSpan)

Records that the condition answered that the email matches.

public static MailRuleEvaluation Matched(string ruleName, IReadOnlyList<MailRuleFact>? readFacts = null, TimeSpan duration = default)

Parameters

ruleName string

The rule's name.

readFacts IReadOnlyList<MailRuleFact>

The facts the condition reached, or null where the caller observed none.

duration TimeSpan

How long the condition took to answer.

Returns

MailRuleEvaluation

The evaluation.

Exceptions

ArgumentException

Thrown when ruleName is empty or whitespace.