|
|
 |
 |
 |
To create an email filter you can do the following: |
|
 |
 |
|
1. |
Launch the webmail interface at
http://mail.domainname.com:8000 |
|
|
2. |
Login using the email address and password |
|
|
3. |
From the Options and Styles menu select Filters. If you wish to create a domain wide filter you can login as the root account and select Domain Filters from the Options and Styles menu. |
|
|
|
 |
|
|
4. |
Click Add |
|
|
|
 |
|
|
5. |
Fill in the necessary information |
|
|
|
|
 |
Select Field - the portion of the email the filter will scan |
|
|
 |
Phrase - the information the filter scans for |
|
|
 |
Add Condition - adds the above information into the Rule |
|
|
 |
Filter Action - control what happens to the email if it matches the rule |
|
|
 |
Destination - email account filtered mail could be forwarded to |
|
|
|
|
|
 |
|
|
6. |
Click Finish |
|
|
From the filter screen you have the option to add, delete and modify existing filters. The filters a processed in the order listed. You can rearrange this order by clicking the "Up" or "Down" buttons. |
|
|
| For more information about search phrases for your filters see below: |
|
|
|
 |
|
1. |
Multiple keywords or phrases can be included in one string. To do this, use the following format within the Phrase field: |
|
|
|
(keyword1 | keyword2 | keyword3) |
|
|
|
In other words, the entire string must be enclosed by parenthesis ( ) and each word is separated by a pipe | key. (the pipe key is the straight line located above the backslash \ key next to the backspace button on your keyboard) |
|
|
2. |
The other way to separate multiple keywords is by using the INSERT AND or INSERT OR buttons found on the Edit Rule page. |
|
|
3. |
The expressions for each element of a delivery rule follow:
Message Area
From: F
Subject: S
Sender: N
To: T
entire header (everything preceding the body) H
entire body of message B |
|
|
|
Condition Expression
contains ~
does not contain !~
equals =
does not equal != |
|
|
|
Text Pattern Expression
Any character .
Any of the values separated by vertical bars within the parentheses; the vertical bar represents "or" (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. Note that only the first 32,000 bytes of a message is checked. Please see the bottom of this page. |
|
|
4. |
Those look complicated, but essentially it allows you to setup some complex filters. One of the most important ones to note is that whitespace is ignored. This means that the following filter won't work: |
|
|
|
(get rich quick scheme) |
|
|
|
because it will search the message for the following text: |
|
|
|
getrichquickscheme |
|
|
|
which probably doesn't exist. In order to setup the filter properly, you'd want to do it like this: |
|
|
|
(get\srich\sqiuck\sscheme) or (get \s rich \s quick \s scheme) |
|
|
|
The reason: since whitespace is ignored in Imail we can space things out to make them clearer. |
|
|
|
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. |
|
|
|
So, if you want to filter everything from the domain sina.yahoo.cn, the filter would look something like this: |
|
|
|
sina\.yahoo\.cn |
|
|
|
Reason: the dot (.) is a special character, so you must precede it with a slash (\). |
|
|
|
 |
|
|
 |
|
|