In CodeTwo Exchange Rules PRO you can configure rules that will be responsible for checking the text of email messages that are processed by the server and acting according to the defined actions. In order to search specific words and phrases in the body of messages CodeTwo Exchange Rules PRO includes built-in dictionaries.
The dictionaries can be accessed when configuring the Sensitive content filter action. To open a dictionary, you need to click the Open dictionary button (Fig.1.).
Fig.1. Open dictionary button.
Fig.2. Predefined dictionaries list.
The predefined dictionaries are listed on the left pane. A new dictionary can be added by clicking the Add button. If you want to modify the dictionary content, simply click the button that corresponds to the action you want to make (Add, Remove or Edit). For example, if you want to add a phrase to the dictionary, simply pick the dictionary from the list on the left pane, and click the Add button on the right side of the window.
There are three types of phrases that the dictionaries can contain:
Exact phrase (Fig.3.). This type of sensitive content defines that the application should search for the exact match of the chosen phrase. E.g. "test". If the message contains a word "tester" - the application will simply ignore it.
Fig.3. Exact phrase type added to the dictionary.
Wildcard (Fig.4.). This type of sensitive content defines that the application should search for the phrase that can match and contain the word described in the dictionary. E.g. "test". If the phrase contains the word "test" e.g. "tester" the word meets the requirements and the rule will apply for the found phrase.
Fig.4. Wildcard phrase type added to the dictionary.
Regular expressions (Fig.5.). This is a common type of expressions that is described in details here . Standard, that is supported by CodeTwo Exchange Rules PRO is .NET from Microsoft.
Fig.5. Regular expressions added to the dictionary.
After the type of the phrase has been chosen, its weight needs to be set as well. The weight is also set up in the rule. After the number exceeds its limit in the rule, the rule will apply. Each phrase in the dictionary has its own weight which defines its significance.
After adding, removing or editing the phrases, click OK button to apply changes.