The Body condition is used to define the message body (content of an email) that once met will trigger the 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 the action if the message body:
- 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.
If you choose 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 make use of wildcards as a prefix or a suffix. Either way, If the defined keywords are found during processing messages, then the condition will be met and the defined action executed.
The program will not recognize keywords defined with $ (dollar) and ; (semicolon) characters.
Furthermore, this feature lets you 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 from message checkbox to delete it from message body if found. On the other hand, leave the checkbox unmarked if you don't 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 within the body of a message.|
If you choose 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 action.
|Fig. 4. Opening the Sensitive content editor.|
Each phrase used in the dictionary has its own score set. On the other hand, 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, please refer to this article.
Message Direction - this article describes how to configure the Message Direction condition.