You can use Domain Delivery Rules to direct incoming mail to particular mailboxes based on the contents of To, From, Sender, Subject, the entire message Header (everything but the body of the message), or the Body of the message.
Select the field you want to search.
Select "contains" to have the delivery rule look for messages that contain the search string; select "doesn't contain" to look for messages that do not contain the string.
Enter a search string as described below.
In "Move To" select or enter the name of the mailbox to which messages meeting the rule criteria will be sent. If you enter a mailbox that does not exist, one will be created for this user on the system. A POP3 user will see this mailbox only if he logs on to this mailbox using the format User ID-newbox. Enter Delete to discard the message.
Note to Administrators: If this rule is for a host, in the "send to the mailbox" area, enter the user ID to which messages meeting the rule criteria will be sent. If you want the message to go to a particular mailbox, follow the user ID with a hyphen and the mailbox name, such as [email protected]. As with a user rule, you can enter Delete to discard the message, or enter a new mailbox name to create one.
5. Turn on "Case Sensitive Match" to search for text that matches the case of the search string; to ignore case, turn off "Case Sensitive Match".
Entering a Search String
Enter a search string by doing one or more of the following:
Enter the literal text (up to 255 characters) that you want to search for. For example, if you want to find the word jazz, type: jazz.
Type search expressions and quantifiers (up to 255 characters) as shown in the Text Patterns tables below.
Paste a portion of a mail message that meets your intended search criteria. For instance, you could copy and paste text such as XMSMailPriority(High) from the header of a message; this would search for High priority messages.
Check "Search string from file" if you have placed the search text in a text file. The listbox shows a list of the existing rule files.
|
Text Pattern |
Expression |
|
Any character |
. |
|
Any of the values separated by vertical bars within the parentheses |
(this|that|other) |
|
Any word character (a-z, A-Z, 0-9) |
\w |
|
Any non-word character |
\W |
|
Any digit (0-9) |
\d |
|
Any non-digit |
\D |
|
Any white space (spaces and/or tabs and/or carriage returns) |
\s |
|
Any non-white space |
\S |
|
Any punctuation character (any character other than \w or \s) |
\p |
|
Any non-punctuation character |
\P |
|
Quantifier |
Expression |
|
Zero or more |
* |
|
One or more |
+ |
|
Exactly 100 |
{100} |
|
At least n1, but not more than n2 (where n1 and n2 are numbers) |
{n1,n2} |
Note: As shown above, the following characters have special meaning in a rule:
{}()|*+,.:
If you want to use one of these characters in a search string, precede it with a backslash. For example, to search for a plus sign, enter \+ in the search string.
Related Topics
Modifying Domain Processing Filters