|
Rules
How to specify routing rules
Routing RulesYou can specify routing rules in many points of the AO and AT routing algorithms. Each rule is made of conditions and actions. ConditionsConditions specify when a rule's actions are executed.
For conditions on text fields, such as "from", "to", "subject" and "body", you can specify simple operations like "is" (test for equality), "is not", and "starts with". More complex conditions on these fields can be specified using regular expressions. Regular ExpressionsTheir syntax used must be that of Ruby. When using groups matching you can use them in the actions:
ActionsActions set or change a message's fields or custom attributes. |
► Sign in to add a comment
Please provide examples of regexes that are needed for common tasks.. e.g. contains string 'foo'. Also please explain what the 'stop' field does