Table of Contents

Method AppliesTo

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

AppliesTo(string)

Reports whether this rule is one of the rules the given account's mail is passed through.

public bool AppliesTo(string account)

Parameters

account string

The configured identifier of the account the email belongs to.

Returns

bool

true when the rule is general or names this account.

Remarks

The comparison is ordinal, which is how the synchronization section already tells two account identifiers apart: two accounts differing only in case are two accounts there, so a scope that matched them both here would send one account's mail through the other's rules.

Exceptions

ArgumentException

Thrown when account is empty or whitespace.