Table of Contents

Method IsNamedBy

Namespace
MailFathom.Application.Accounts
Assembly
MailFathom.Application.dll

IsNamedBy(MailAccountSelector)

Reports whether text a request carried names this account.

public bool IsNamedBy(MailAccountSelector selector)

Parameters

selector MailAccountSelector

The text naming an account.

Returns

bool

true when the text is this account's identifier or its display name.

Remarks

The identifier is matched ordinally because it is a configured key that everything else compares exactly, and the display name without regard to case because it is prose an operator wrote for a person to retype. Both are compared against the whole value: a display name is never matched as a fragment, so naming one account can never select another whose name contains it.