- {{docApp.book.type}}
- {{docApp.book.formattedCommitDate}}
- {{docApp.book.readTime}}
- {{docApp.book.contributorCount}} contributors
Each routing rule uses an ExpressLogic expression to match information found within the email message being processed. Information from the email message is made accessible to the expression processor as variables. For convenience, these variables are available in the Rule Parameters selector located at the top right of the Rule Expression field.
Selecting any of these items from the list will insert that parameter into the Rule Expression field. Alternatively, as you become more familiar with the system you can simply type the correct variable names into the expression as needed. The following table lists the available variables and their purpose.
Tip
- These variable names are CASE-SENSITIVE and must be entered in exactly the same way they are documented here. Use the variable selector, or make sure you type them in as shown
- For advanced use, please see the ExpressLogic Reference Guide for more information about ExpressLogic and its capabilities.
Variable | Description |
---|---|
toAddress |
The email address(es) to which the message was sent. If the email was sent to multiple recipients, this variable will contain a comma-separated list of all the addresses (e.g. support@hornbill.com, info@hornbill.com). When including the toAddress variable in an expression, the LIKE operator should be used. For example, the expression toAddress LIKE '%support@hornbill.com%' would match, even if there are multiple addresses.
|
toDomain |
The email domain(s) to which the message sent. If the email was sent to multiple recipients, this variable will contain a comma-separated list of all the domains (e.g. hornbill.com, google.com ). When including the toDomain variable in an expression, the LIKE
operator should be used. For example, the expression toDomain LIKE '%hornbill.com%' would
match, even if there are multiple domains. |
ccAddress |
The CC email address(es) to which the message was sent. If the email was sent to multiple CC recipients, this variable will contain a string of comma-separated addresses (e.g. support@hornbill.com, info@hornbill.com ). When including the ccAddress variable in an
expression, the LIKE operator should be used. For example, the expression
ccAddress LIKE '%support@hornbill.com%' would match, even if there are multiple addresses.
|
ccDomain |
The CC email domain(s) to which the message was sent. If the email was sent to multiple CC recipients, this variable will contain a string of comma-separated domains (e.g. hornbill.com, google.com ). When including the ccDomain variable in an expression, the LIKE
operator should be used. For example, the expressionccDomain LIKE '%hornbill.com%' would
match, even if there are multiple domains. |
fromAddress |
The full email address of the person who sent the message, for example
joe.bloggs@hornbill.com |
fromDomain |
The email domain of the person who sent the message, for example hornbill.com |
subject |
The message subject text |
body |
The message body text. If the message was sent as HTML, this will be a html-stripped text string. |
mailbox |
The name of the mailbox on Hornbill to which the toAddress email was matched |
Example Routing Rule Expressions
Note
Please see the ExpressLogic Reference Guide to learn more about whats possible with ExpressLogic expressions beyond the simple examples shown here.
Operator | Example |
---|---|
LIKE | subject LIKE ‘%abc’ subject LIKE ‘xyz%’ AND fromDomain = ‘hornbill.com’ subject LIKE ‘%mno%’ OR subject LIKE '%dce%' |
NOT LIKE | subject NOT LIKE ‘%abc’ subject NOT LIKE ‘xyz%’ subject NOT LIKE ‘%mno%’ |
NOT | subject != ‘abc’ |
NOT IN | subject NOT IN (‘abc’, ‘zyx’) |
IN | subject IN (‘abc’, ‘mno’, ‘xyx’) |
= | subject = ‘abcd’ |
Learn More
- Version {{docApp.book.version}}
- Node {{docApp.node}} / {{docApp.build}}