Table of Contents

Method TryParseName

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

TryParseName(string?, out MailRuleFact)

Resolves the fact an expression identifier names, matching case exactly.

public static bool TryParseName(string? name, out MailRuleFact fact)

Parameters

name string

The identifier written in a condition.

fact MailRuleFact

The declared fact when the name is one; otherwise the unspecified default.

Returns

bool

true when the name is a declared fact; otherwise false.

Remarks

Case is significant, unlike the SASL names elsewhere in this repository. A fact name is written in a condition beside operators and literals, so accepting SENDERDOMAIN as well as senderDomain would leave the documented surface and the accepted surface saying different things, and a rule set would stop reading uniformly the moment two people wrote it differently.