Page updated 1 November 2012
Filters allow automatic management of messages received from the server. Certain actions can be invoked on messages that match user-defined conditions, usually based on the content of header lines. They can be used for such things, marking spam for deletion and sorting mail into different Saveboxes according to sender or subject.
A Filter tab exists on both the Global Options, where the dialogue controls filters to be applied to all accounts, and the Account Settings dialogue where filters are applied to the selected account only.
Any number of filter items may be added to an account's settings. As each message is retrieved it is checked against the first filter. If the conditions for the first filter are met, its action is executed. If the conditions fail then the following filter is checked and so on. Certain filter actions (e.g. Accept and Reject) stop any further filters in the list from being checked. Others limit the validity of certain following filters, If a message fails to meet the conditions for all the filters then the message will be accepted subject to the settings under the RECV tab of the Global Options dialogue.
The majority of the Filter dialogue controls are initially inactive.
For a filter item to execute an action either one or two conditions must be true. If a second condition is set then an appropriate radio button must also be selected to relate the two conditions.
The possible filter actions are:
The filter conditions are based on e-mail header lines. These specify not only the address of the sender, subject line, and date and time of the message, but also routing information (to allow undelivered messages to be returned to the sender) and other technical information, e.g. the program used to create the e-mail.
One or two headers in any message may be checked by an individual rule for particular conditions. In the dialogue the headers to be tested are labelled "Item1:" and "Item2:" and the two conditions.may be applied with the boolean operators AND (both conditions must be true), OR (either condition can be true) or AND NOT (Labelled as "UNLESS", i.e. Item 1 must be true, unless Item 2 is true).
Any header line may be tested by typing it into the "Item1" or "Item2" line, but the following may be selected from the drop-down list and do not need to be typed:
From: | To: | Cc: | Subject: |
Organization: | Reply-To: | Comments: | Content-Type: |
Date: | Keywords: | Sender: | X-Mailer: |
X-Priority: | X-Sender: | X-ML-Name: |
Except for the special cases mentioned below, "Content1" and "Content2:" must match exactly the content of the given header line in the source of the e-mail, including capitalisation, punctuation and spacing. In order to ascertain the true contents of header lines it may be necessary to turn on the Include header lines feature, as sometimes the information shown in the headers nPOPuk displays is NOT identical to the true header in the message source.
A * symbol may be used as a wild card to represent any number of additional characters. This is particularly useful for addresses and popular words used as subject lines by spammers. For example, addresses can appear in e-mail header lines with the "real" name added (with or without quotes) and the address may be enclosed in less/greater than <symbols>.
NOTE: In almost all cases the use of twin wildcards wrapping the content text will be required, as shown in the default sample entry "*v1agra*".
Where "From:" is selected as the item one of two special Content entries may be used. (Be aware that both these content items can degrade performance if the address book is large, particularly if entries have multiple groups as the program has to split the string and check each one):
**INADDRESSBOOK
When this is entered the filter will trap any address in nPOPuk's
Address Book.
**INGROUP groupname
When this is entered and where "groupname" represents the name of a
group in your address book the filter will trap addresses that are
included in that group.
Where "Date:" is selected as the item one of two special Content entries may be used:
**OLDERTHAN n
**NEWERTHAN n
When one of these are entered and where "n" is a number representing the
number of days, the filter will trap mail that is older or more recent
than the given number of days.
To delete any mail from a Hotmail address when the server is next
updated:
NOTE: As it is difficult to
predict the exact format of the address line the crucial portion of
the address is wrapped in wildcards.
Action | Item 1 | Content 1 |
---|---|---|
Mark to delete | From: | *@hotmail.com* |
To delete spam offering you business proposals:
Action | Item 1 | Content 1 |
---|---|---|
Mark to delete | Subject: | *PROPOSAL* |
To accept mail only from those with an address stored in your address book:
Action | Item 1 | Content 1 | Condition | Item 2 | Content 2 |
---|---|---|---|---|---|
Reject | From: | * | UNLESS | From: | **INADDRESSBOOK |
Assuming that you have the default setting to download only 100 lines of any mail, then the following filter could be used to accept large attachments only from those known to you:
Action | Item 1 | Content 1 |
---|---|---|
Mark to download | From: | **INADDRESSBOOK |
Two ways to retrieve only mail dated within the last fortnight:
NOTE: Version two highlights the
fact that if you have no filters messages will be accepted. So if you
just use an "accept recent mail" rule, then mail that doesn't match the
rule passes through the filter, so you need the second "reject all mail"
rule to stop everything else.
Action | Item 1 | Content 1 |
---|---|---|
Reject | Date: | **OLDERTHAN 14 |
OR
Action | Item 1 | Content 1 |
---|---|---|
Accept | Date: | **NEWERTHAN 14 |
Reject | Date: | * |
The following set of filters could appear on a computer at home and
must appear in this order to be effective.
1. Messages from your employer will be accepted and copied to your
"Work" Savebox (so you can answer them from home, but still have them
available to download at work).
2. Mail that fails the first test will be checked with your address
book, marked for deletion, and copied to your "Home" Savebox.
3. Mail that fails the first two tests will be treated as spam and
marked to be deleted.
NOTE: The importance of this
order of filter items is based on the assumption that the employer's
address will be in the address book, so the rule to copy employer's mail
must be executed before the move filter, which would delete such mail
and make it unavailable at work to be downloaded from the server.
Action | Savebox | Item 1 | Content 1 |
---|---|---|---|
Copy to: | Work | From: | *@myemployer.com* |
Move to: | Home | From: | **INADDRESSBOOK |
Mark to delete | To: | From: | * |