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
Article Type
Technical Solution


Issue



This article details how to test regular expressions on a PGP Universal Server without needing to send an email to test the expression.

 


Solution



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 jsmith@example.com, then a message matches the entry only if it contains jsmith@example.com. Similar strings, for example, smith@example.com, do not match.
  • Patterns are dictionary entries that match against characters in messages that satisfy the pattern. For example, the pattern j.*@example.com requires a match for the letter "j", then any number of other characters, then the sequence "@example.com", it matches "jsmith@example.com" and "jgreen@example.com". Use regular expression syntax to create patterns.

Use the following steps to test expressions in a new or other custom added dictionary. 

  1. Login to the PGP Universal Server administrative interface.
  2. Click the Policy card then select Dictionaries.
  3. Click the desired dictionary's name to test from the Dictionaries list.
  4. Above Term, click the drop-down arrow and change the option from Search for term to Evaluate expression.
  5. Type a sample string to be tested then click Go.

A list of terms that fit the criteria you specified appears.

 

 



Legacy ID



1424


Article URL http://www.symantec.com/docs/TECH149428


Terms of use for this information are found in Legal Notices