The Body condition is used to define the message body (content of an email) that once met will trigger an action to be processed by the program.
To define the message body within the Conditions tab, expand the Field's context menu and choose Body (Fig. 1.).
|Fig. 1. Choosing Body in the Conditions tab.|
There are two factors (Fig. 2.) that need to be configured within this condition:
- Operator - enables definition of how the condition will be executed. The execution method may be only set to true.
In this particular condition, the operator may be set to trigger an action if the message body:
- contains keyword(s)
- Actual condition value - here you define the expected value of the condition that will trigger the rule to apply the action.
|Fig. 2. Configuring the message Body.|
Please note that the value field depends on the operator, and its definition type may differ in regards to the chosen operator. What is more, this field is always case-insensitive.
By choosing the contains keywords operator, you can define strings of characters to be searched for within the message body. Additionally, besides defining strings of characters (letters and numbers) as keywords, you can also make use of wildcards as a prefix or a suffix. Either way, if the defined keyword is found while the message is being processed by the program, then the condition will be met, and the selected action executed.
The program will not recognize keywords that contain special characters (such as the dollar sign ($) or a semicolon (;)), a combination of special characters or multiple spaces between characters.
This feature lets you also decide if the found keyword should be removed or left unchanged. To define a keyword for the contains keyword operator, click Edit and then the Add button. In the window that opens enter the keyword and mark the Remove from message checkbox to delete it from the message body if found. On the other hand, leave the checkbox unmarked if you do not want to remove the found keyword. Be aware, this option works regardless of other conditions and exceptions.
|Fig. 3. Defining a keyword to be searched for within the body of the message.|
Message Direction - this article describes how to configure the Message Direction condition.