Routing Rules
Routing service uses the list of predefined routing rules to route messages between accounts.
When the message arrives, the service steps through the rules, in the order of their ID values, to find a rule for which the message satisfies all its conditions. If a rule is found, it is used to route the message.
The routing rule has the following properties:
Rule
- Name specifies the name of the rule.
- Route to specifies the account to which the message should be routed.
- Priority specifies the sending priority of the message.
Messages in the Outbox with higher priorities will be sent before messages
with lower priorities.
- Override Text lets you override the text of the message. In this field you can use Routing Text Parameters,
Message Text Parameters and Global Text Parameters.
For example, you can use %RemovePrefix% parameter
to remove prefix from the message text before routing.
- Override To lets you override the address of the recipient of the message. In this field you can also specify a group of contacts by enclosing a group name in square brackets ( [ ] ). In this field you can use Routing Text Parameters,
Message Text Parameters and Global Text Parameters.
- Override From lets you override the address of the sender of the message. In this field you can use Routing Text Parameters,
Message Text Parameters and Global Text Parameters.
- Override Type lets you override the type of the message.
Condition
- Pattern specifies the pattern used to match the text of the message. See Wildcard Patterns for more information. If you wish to match binary messages, then set pattern to <BinaryMessage>.
- Account specifies the incoming account. In the Rule dialog, use selection button ( ... ) to select or clear the account field.
- From lets you specify the pattern used to match the address of the sender of the message. See Wildcard Patterns
for more information.
- To lets you specify the pattern used to match the address of the recipient of the message. See Wildcard Patterns
for more information.
Alternatively, in the From and To fields you can also specify a group of contacts by enclosing a group name in square brackets ( [ ] ). For example, if you enter
[Friends], then all contacts from the Friends group will
be accepted.
Reply
- Enabled - Specifies whether the reply should be sent when the rule is applied.
- Text - The text of the reply message. The replies to the answers may contain Routing Text Parameters,
Message Text Parameters and Global Text Parameters.
- Type specifies the type of the reply message.
- Priority specifies the sending priority of the reply message.
- Account specifies the account which will be used for sending the reply. If not specified the account of the incoming message will be used. In the Item dialog, use selection button ( ... ) to select or clear the account field.
- Address specifies the address of the sender of the reply message. If not specified then the recipient address from incoming message will be used.
Options
- Add sender to group specifies whether to add the sender of the message to the Address Book. If a group name is supplied, then the contact will be added to the specified group.
- Add recipient to group specifies whether to add the recipient of the message to the Address Book. If a group name is supplied, then the contact will be added to the specified group.
Routing Setup dialog - General tab
This tab displays the list of routing rules.
The Action menu contains the following options:
- Up/Down - Use to arrange the list of rules prior to using Tools - Renumber option.
The Tools menu contains the following options:
- Renumber - Use to renumber the ID values of the rules using their current order in the list.
- Set Route to - Use to specify the account to which the messages should be routed.
- Reply - Enable/Disable - Use to enable or disable sending of the reply for the selected rules.
- Reply - Set Priority - Use to set the priority of the selected replies.
- Reply - Account - Select/Clear - Use to specify the account to be used for sending the reply.
- Reply - Set Address - Use to specify the address of the sender of the replies for the selected rules.
Use Pattern Test Bar to test how the rules are recognized. While you type the text, you can see if and how that text is recognized.