The Body condition is used within a rule to define the message body (email content) that, once met, will trigger the program to process the rule and perform the associated action(s).
To define the message body within the Conditions tab, expand the Field context menu and choose Body (Fig. 1.).
|Fig. 1. Choosing the Body condition.|
There are two factors (Fig. 2.) that need to be configured within this condition:
- Operator - defines how the condition will be executed. The execution method may only be set to true.
In this particular condition, the operator may be set to trigger the action if the message body:
- 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 chosen operator. What is more, this field is always case-insensitive.
If you choose the contains keyword operator you will be able to 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 use wildcards as prefixes or suffixes. Either way, if the defined keywords are found when the program processes messages, then the condition will be met and the assigned action will be executed.
The program will not recognize keywords defined with the dollar ($) and semicolon (;) characters.
Furthermore, you can decide if the found keyword should be removed or left unchanged. To define the 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 this keyword from email if found 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 that this option works regardless of other conditions and exceptions.
|Fig. 3. Defining a keyword to be searched within the body of a message.|
If you choose the contains sensitive content operator, you will be able to define phrases in the sensitive content dictionary (Fig. 4.). These phrases will be searched within the message body and, once found, will trigger the rule to apply the assigned action.
|Fig. 4. Opening the Sensitive content editor.|
Each phrase used in the dictionary has its own score set while each dictionary (collection of phrases) has a required cumulative score set. Once the action is configured, the program searches for the selected phrases in the body of a message. If the phrases are found, the program compares their total score with the required cumulative score of the dictionary. If the cumulative score is reached then the action is triggered. To learn more about the sensitive content phrases and dictionaries, see this article.
Message Direction - this article describes how to configure the Message Direction condition.