Using wildcards

Wildcards are characters that take form of an asterisk (*) followed or preceded by a particular character (-s) and are used to replace other characters in strings, e.g. *@company.com, *test*, *@company*.

In CodeTwo Exchange Rules, wildcards are case-insensitive and may be used to define email addresses and keywords in strings. Therefore, it is possible only for Sender, Recipient, Subject and Body conditions.

Tip

Please note that you can use asterisk individually before or after a string of characters, simultaneously in front and after a string or inside a string, e.g. if you define the wildcards: *@company.com, mike@company.*, *@company.*, mike@com*pany.com, the following strings will be recognized: xxxxx@company.com, mike@company.xxxxx, xxxxx@company.xxxxx, mike@comxxxxxpany.

To define wildcards in regards to email addresses in Sender and Recipient conditions, add these conditions to a rule, choose matches email address operator and click Edit. In the Email addresses editor, enter a string of characters preceded or followed by an asterisk (Fig. 1.).

Defining wildcards for email addresses in Sender and Recipient conditions.
Fig. 1. Defining wildcards for email addresses in Sender and Recipient conditions.

On the other hand. to define wildcards in keywords in Subject and Body conditions, add these conditions to a rule, choose contains keyword operator and click Edit. In the keywords editor that opens click Add and enter a string of letters / numbers preceded or followed by an asterisk (Fig. 2.).

Defining wildcards for keywords in Subject and Body conditions.
Fig. 2. Defining wildcards for keywords in Subject and Body conditions.

In this article

Was this information useful?