Testing Regular Expressions in PGP Universal Server 3.0 Dictionaries
|Article:TECH149428|||||Created: 2009-05-21|||||Updated: 2012-02-02|||||Article URL http://www.symantec.com/docs/TECH149428|
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 email@example.com, then a message matches the entry only if it contains firstname.lastname@example.org. Similar strings, for example, email@example.com, do not match.
- Patterns are dictionary entries that match against characters in messages that satisfy the pattern. For example, the pattern firstname.lastname@example.org requires a match for the letter "j", then any number of other characters, then the sequence "@example.com", it matches "email@example.com" and "firstname.lastname@example.org". 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.
Article URL http://www.symantec.com/docs/TECH149428