Notes mail rules
by
Craig
Lordan
Level:
Beginner
Works with:
Notes 5.0
Updated:
13-Dec-99
This article is first in our series this month on Notes spam mail filtering. In this article, we learn about a standard feature of Notes mail called mail rules. You will learn, by example, how to set up some simple mail rules to filter spam mail:
From individuals
From entire Internet domains
Based on words in the body or subject of the message
By learning the techniques demonstrated in these examples, you should be able to set up your own mail rules to filter spam mail.
You can create and use mail rules whether you access Notes mail via the Notes R5 client or a Web browser, however, your mail database must reside on a Domino R5 server.
Note:
For complete instructions on using all the mail rules features, see
Notes 5 Help
.
Introducing mail rules
In Notes R5, you have a Rules folder in your mail database. This is where you create, store, and manage all your mail rules.
You use mail rules to perform actions on new messages, based on one or more conditions. The message conditions you can choose are:
Sender
Subject
Body
Importance
Delivery priority
To
CC
BCC
To or CC
Body or subject
Internet Domain
Size (in bytes)
The actions you can choose are:
Move to folder
Copy to folder
Change importance
Delete
Although the examples in this article focus on filtering spam mail, mail rules is a handy feature that allows you to manage all your incoming mail. For example, you can manage messages from your direct reports by moving any messages that include the phrase "status report" into a designated folder. Or maybe you're waiting for an important e-mail from Aunt Sally -- you can change the importance of any e-mail from her.
This rule checks for mail from Aunt Sally:
The result is the importance is changed when you receive a message from Aunt Sally:
What if I don't have a Rules folder?
If you are using Notes R5, but you don't see a Rules folder in your mail database, you probably need to update the design of your mail database to the Mail (R5.0) template design. Check with your system administrator on the correct way to accomplish this task. The general instructions are:
In your mail database, choose File - Database - Replace Design.
Find a template server that has the Mail (R5.0) template.
Select the Mail (R5.0) template
Click Replace, then and click Yes to confirm.
If your mail database does have the Mail (R5.0) design, but you still can't see your Rules folder, check the Database Properties.
In your mail database, choose File - Database - Properties or click the Properties SmartIcon.
Click the Launch tab.
Ensure the "When opened in the Notes client" option is set to "Open designated Frameset" and the Name option is set to "MailFS."
Close and re-open your mail database. You should now see the Rules folder.
Creating mail rules to filter spam mail
What is spam to one person may not be spam to another, so it's up to you to create mail rules telling Notes what you consider to be spam. In the following examples, we will set up three mail rules to filter spam mail -- one based on the sender name, one based on the sending Internet domain, and one based on words in the message.
Filter spam mail from individuals
You can create mail rules to filter mail from individuals, based on all or part of their name, no matter what their Notes or Internet domain happens to be. In this example, we want to move any mail from anyone named "Smith" into a folder named "Unwanted."
In your mail database, click the Rules folder.
Click the New Rule button or choose Actions - New Rule.
Ensure the "This rule is" radio button is set to On.
In the Specify Conditions section, choose "sender" and "contains" from the drop-down lists.
Type all or part of the name of the individual in the box next to "contains."
Click Add. Your condition appears in the "When mail messages arrive that meet these conditions" section.
Now choose what to do with the spam mail. In the Specify Actions section, choose "move to folder."
Click the Select button to choose the Unwanted folder.
Note:
If you don't already have an Unwanted folder, the dialog box that appears has a Create New Folder button.
Click Add Action. Your action appears in the section below.
Click OK at the bottom of the New Rule dialog box.
Your new rule should now appear in your Rules folder. The green check mark means it's enabled. Any new mail from anyone with "smith" in their name will be moved to the Unwanted folder.
Filter spam mail from Internet domains
In this example, rather than targeting particular people, we create a rule to delete any incoming mail from two different Internet domains.
In your mail database, click the Rules folder.
Click the New Rule button or choose Actions - New Rule.
Ensure the "This rule is" radio button is set to On.
In the Specify Conditions section, choose "Internet domain" and "contains" from the drop-down lists.
Type the Internet domain in the box next to "contains."
Click Add. Your condition appears in the "When mail messages arrive that meet these conditions" section.
Choose OR from the AND/OR drop-down list.
Type another Internet domain in the box next to "contains."
Click Add. Your condition appears in the "When mail messages arrive that meet these conditions" section.
Now choose what to do with the spam mail. In the Specify Actions section, choose "delete."
Click Add Action. Your action appears in the section below.
Click OK at the bottom of the New Rule dialog box.
Your new rule should now appear in your Rules folder. Any new mail from anyone with the Internet domain of "acme.com" or "example.net" will be deleted.
Filter spam mail based on words in the message
But what if you don't know anything about the senders of the spam mail? You probably have seen many spam mail messages with phrases such as "Get rich quick," or other such language trying to sell you something. Wouldn't it be nice to avoid these messages, no matter who sends them? In this example, we will create a rule to filter spam mail based on words either in the body or the subject of the message.
In this example, we're also going to add an exception, so that messages containing the phrase "get rich quick" but are sent by Aunt Sally are not deleted. (She may offer you an opportunity to invest in her cookie-baking business.)
In your mail database, click the Rules folder.
Click the New Rule button or choose Actions - New Rule.
Ensure the "This rule is" radio button is set to On.
In the Specify Conditions section, choose "body or subject" and "contains" from the drop-down lists.
Type the phrase "get rich quick" (omit the quotation marks) in the box next to "contains."
Click Add. Your condition appears in the "When mail messages arrive that meet these conditions" section.
Next to Create, select Exception.
Choose "sender" and "contains" from the drop-down lists.
Type "aunt sally" (omit the quotation marks) in the box next to "contains."
Click Add. Your exception appears in the "When mail messages arrive that meet these conditions" section.
Now choose what to do with the spam mail. In the Specify Actions section, choose "delete."
Click Add Action. Your action appears in the section below.
Click OK at the bottom of the New Rule dialog box.
Your new rule should now appear in your Rules folder. Any new mail containing the exact phrase "get rich quick" but is not sent by Aunt Sally will be deleted.
Making mail rules work for you
Now that you have seen some examples of how you can filter spam mail, you can review the full list of conditions and actions and design your own mail rules. You can be creative, mixing several conditions and exceptions within one mail rule, ensuring that you fight spam but do not miss any legitimate messages. You can also order mail rules in your Rules folder, using the "Move Up" and "Move Down" buttons, so that the rules at the top of the folder take precedence over rules at the bottom of the folder.
Try combining mail rules with other Notes mail features such as replication. Another example of unwanted, but perhaps not spam, mail are messages containing attached files or a large graphic. For mobile users, it may be time-consuming to replicate these large messages when you dial in to check your mail. You can create a mail rule with a message size condition, perhaps of 1,000,000 bytes (1 megabyte), so that large messages are moved to a "Large Messages" folder. You can then change your Replication Settings to exclude the "Large Messages" folder from replicating to the local mail file on your laptop PC. You can then read these large messages when you return to the office.
As you can see, mail rules provide many different options for filtering your messages, spam or otherwise.