Skip to main content

Cornell University

Rules (Filters) in Outlook

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

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 

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

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.

The Classic Outlook for Windows uses a Rules Wizard for creating and managing Rules and Alerts. The instructions below will not match. We recommend using Outlook on the web. Alternatively, you can use a guide to create or manage rules in Classic Outlook for Windows.

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 the conditions. For example, if you select Subject includes and enter the first value as "Network," then Add another condition and select "Has attachment," only messages where both conditions 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 you select Subject includes and enter both "Network" and "cable," then the actions will be done if either word (or both) were found. 

To assign multiple values to a condition, click Enter on the keyboard after typing the word or phrase.

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. 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.