RuleExists()

Checks to see if a rule already exists.

Token ID

AFTKN_RULE_EXISTS or 883

Syntax

BOOLEAN RuleExists( [ANSISTRING UserID]; 
                    ANSISTRING RuleName)

Parameters

UserID As ANSISTRING

Allows someone to test if a rule exists for a proxied user assuming that the user has edit-rule rights on the proxied mailbox. If this parameter is not specified, the token assumes it should use the main logged-in UserID for the test. (Optional)

RuleName As ANSISTRING

The name of the rule.

Return Values

BOOLEAN. Returns True if a rule exists whose name matches that indicated by the Rulename parameter, False otherwise.