When you select the Search ... option, the Find Message dialog window appears. You use the initial Find Message dialog window to perform a simple search for matching patterns in the message headers and body text. See the figure Find Message Window.
The procedure for conducting a simple search is described in Simple Search.
If you want to perform a more complex search, you can click the Complex search ... button to expand the search options. You can specify regular expression patterns, and you can search all the message headers and/or the message body. See Expanded Find Message Window and Complex Search.
The procedure for conducting a complex search is described below in Complex Search.
To perform a simple search:
The search process looks for a pattern match in message headers and body text.
NOTES:
When you have completed the search, click the Done button, or click the Help button for more information.
With the expanded Find Message window, you can construct search expressions that key on combinations of mail message elements, including:
A number of logical operators and comparative operators are also available to create ordered search expressions:
Constructing a search expression consists of entering a search string in one or more of the Find Message text fields and applying logical or comparative operators to the resulting expression. As you construct the expression, its elements are displayed in the search expression display field near the bottom of the expanded Find Message window.
The search expression display field contains a cursor that you can move in order to edit elements of the search expression.
Complex search strings are case sensitive. UNIX wildcard characters are legal. Syntax conforms to that of standard UNIX regular expressions.
Two sample procedures are shown below to illustrate how you Construct a Search Expression and how to Edit a Search Expression.
To construct this example search expression, click the Search ... option to open the Find Message window.
Next, expand the Find Message window by clicking the Complex search ... button to the right of the Search string text field. The Find Message window expands.
In the expanded Find Message window, construct the example search string pattern as follows:
The string Subject contains ".*401K" is displayed in the search string display field.
The string Sender contains "John" is added to the search string display field.
The search string display field now displays the search expression:
Subject contains ".*401K" and From contains "John" |
The search process first looks for a message that contains the string 401K anywhere in a Subject field. Then it checks the first four characters of that message's From field for the string John. If a match is found, the message is highlighted.
You can add, delete, or modify elements of the current search expression or you can click the Clear button to remove the current search expression from the display field in order to construct a new expression.
To edit any element (that is, any search string or operator) of an existing search expression, you move the cursor (vertical bar) to the appropriate location in the search expression and either insert new search elements or delete existing search elements.
To move the cursor:
To delete any element of a search expression:
To add (insert) a search string or operator anywhere in a search expression:
Assume you want to join the two search statements in the expression:
Subject contains ".*401K" and From contains "John" |
to form a compound statement connected by the logical operator OR, and that you want to limit the search to messages sent after May 10, 1995.
The edited search expression now states:
(Subject contains ".*401K" or From contains "John") and Date is > 5/10/95|
The search process first looks for a message that contains either the string 401K anywhere in a Subject: field, or the string John at the beginning of any From: field. If a match is found, the search process then looks at the Date: field for that message. If the date is later than May 10, 1995, the message is highlighted.
When you have completed the search, click the Done button, or click the Help button for more information.