This article details how to test regular expressions on a PGP Universal Server without needing to send an email to test the expression.
Dictionaries are lists of terms to be matched. Dictionaries work with mail policy to allow you to define content lists that can trigger rules or fulfill the conditions of a rule to trigger actions. For example, Dictionaries can contain addresses you want excluded from processing, key words such as confidential, or user names for internal users whose messages need special handling.
A policy rule can have a dictionary associated with it as a condition. If a message meets the condition, the PGP Universal Server processes the message according the rules action.
There are two types of dictionaries:
Static dictionaries are editable lists of literal or pattern strings. All except one of the dictionaries are static.
Dynamic dictionaries are not editable but are maintained by the PGP Universal Server. Information in the dictionary comes from data elsewhere on the PGP Universal Server rather than added directly to the dictionary by hand. There is one dynamic dictionary, the Managed Domains dictionary.
Literals are dictionary entries that can only match against the exact characters in the entry. There is one and only one possible match. For example, if the dictionary entry is firstname.lastname@example.org, then a message matches the entry only if it contains email@example.com. Similar strings, for example, firstname.lastname@example.org, do not match.
Patterns are dictionary entries that match against characters in messages that satisfy the pattern. For example, the pattern email@example.com requires a match for the letter "r", then any number of other characters, then the sequence "@example.com", it matches "firstname.lastname@example.org" and "email@example.com". Use regular expression syntax to create patterns.
Use the following steps to test expressions in a new or other custom added dictionary.
Login to the PGP Universal Server administrative interface.
Click the Policy card then select Dictionaries.
Click the desired dictionary's name to test from the Dictionaries list.
Above Term, click the drop-down arrow and change the option from Search for term to Evaluate expression.
Type a sample string to be tested then click Go.
A list of terms that fit the criteria you specified appears.
Imported Document Id
This is machine translated content
Login to Subscribe
Please login to set up your subscription.
Didn't find the article you were looking for? Try these resources.