Skip to main content

Cornell University

Rules (Filters) in Outlook

Rules allow you to have incoming (or outgoing) messages sorted, filed, marked, or otherwise handled automatically.

On This Page

We recommend that you use Outlook on the Web to create and manage your rules. Learn more about why we recommend Outlook on the web.

Rules are a way to have incoming messages sorted, filed, marked, or otherwise handled automatically. You teach Outlook what to look for and what to do when it sees a message that meets the conditions you’ve set. For example:

  • Move messages from a particular address into a specified folder.
  • Assign a category or flag to messages with a particular word in the subject.
  • Forward all messages with attachments to another address.
Note: If Microsoft 365 puts a message in the junk folder, rules will not be applied to it. Rules only apply to email that would be put in the inbox, and can't be used to keep messages out of the junk folder. 

Create Rules (Filters) in Outlook on the Web

Microsoft has instructions for managing email messages by using rules in Outlook on the web.

Putting Your Rules in Order 

It's always a good idea to set the order in which inbox rules are applied to incoming messages.

Create Rules (Filters) in Outlook for Windows

Microsoft has instructions for managing email messages by using rules in Outlook for Windows.

Putting Your Rules in Order

It's always a good idea to set the order in which inbox rules are applied to incoming messages.

Create Rules (Filters) in Outlook for Mac

Microsoft has instructions for managing email messages by using rules in Outlook for Mac.

Putting Your Rules in Order 

The rules are checked in the order you have them listed. You can change the order of your rules by dragging and dropping them in the Rules dialog box.

The Do not apply other rules to messages that meet these criteria checkbox controls what happens when a message matches more than one rule. As a message is compared to each rule, the first time it matches a rule’s criteria, Outlook looks at this checkbox on the rule that was matched.

  • If the box is checked (which is the default), Outlook will stop checking rules on this particular message and go on to the next message.
  • If the box is unchecked, Outlook will continue evaluating this message against the remaining rules.

Some actions automatically check the box AND gray it out so that you cannot uncheck it. For example, if you Delete a message or Move it to a folder, the message is no longer available to be evaluated against the remaining rules.

Creating a Rule Based on a Message

You can create a rule that will look for messages that look like one you’ve already received, rather than starting with a blank slate.

  1. From your preferred client, find the message in the message list and right-click (control-click) on it. 
  2. Select Rules, then Create Rule. If using Outlook on the Web, then select More options.
The dialog box that pops up is slightly different depending on your client, but the concepts of what to select are the same. 
  1. Select one or more of the three conditions listed. Messages that match ALL of the conditions you specify will be acted upon.
    • From - all messages that come from the same address that this message came from.
    • Subject Contains - this field will initially contain the complete subject line from the current message. If you choose this condition, edit this down to just the keyword or words.
    • Sent to - the drop-down list will include all addresses where the current message was sent.
  2. Under Do the following, select one or more actions to be taken when a message matches the conditions you’ve chosen.
  3. Click OK to close the dialog box.

Troubleshooting Rules (Filters)

Sometimes you’ll set up a rule and the result won’t be what you had in mind. Here are some reasons why, and how to deal with them.

AND versus OR in Rules

When creating complex rules, you’ll need to understand how Outlook handles multiple values.

If you use more than one condition, Outlook treats them as “and” statements, that is, the rule won’t be applied unless a message meets all of the conditions. So, for example, if you check the boxes for “with ‘Network’ in the subject” and “which has an attachment,” only messages where both those things are true will have the rule applied.

If you specify more than one value within a condition, Outlook is happy if it finds at least one of the values, not necessarily all. For example, if we set the condition to “with ‘Network’ or ‘cable’ in the subject,” the rule would be applied if either word (or both) were found.

If you specify more than one action, Outlook will do them all, as you’d expect.

If you specify more than one exception, Outlook treats them as “or” statements, that is, if any one (or more) of the exceptions apply, the rule won’t be applied to the message.

As with multiple values within a condition, if you specify more than one value within an exception, Outlook will use the exception if it finds at least one of the values, not necessarily all.

Comments?

To share feedback about this page or request support, log in with your NetID

At Cornell we value your privacy. To view
our university's privacy practices, including
information use and third parties, visit University Privacy.