Office Help

Mail

Rules

With rules, Mail sorts incoming messages for you: newsletters into a folder of their own, invoices with a label, notifications marked as read straight away.

Rules act when a message arrives, before it lands in the inbox. They work even when Mail is not open, and for messages you read on your phone. A rule never refuses a mail: the sender notices nothing.

Making a rule

  1. Choose Settings at the bottom of the sidebar, then the Rules tab.
  2. Choose Add a rule and give the rule a name, for example "Newsletters".
  3. Under When, say which messages are meant (see Conditions).
  4. Under Then, say what happens to them (see Actions).
  5. Choose Save. The rule applies to every new message from now on.
The Rules tab with a rule for newsletters
A rule: move mail from a list into the “Newsletters” folder

Conditions

A rule can have several conditions. At the top, choose whether all of these match or whether it is enough that any of these matches.

ConditionComparisonExample
Fromcontains, is, domain is, does not containdomain is shop.example.com
To or Cccontains, is, domain is, does not containcontains invoices@
Subjectcontains, is, domain is, does not containcontains Invoice
Headercontains, is, does not contain, for a header by nameList-Id contains clubnews
Sizelarger than, smaller than (in KB)larger than 5000
Has attachmentsyes or noyes
From outsideyes or no: not from your organisationyes
From a mailing listyes or no: newsletters and mailing listsyes
Is an invitationyes or no: contains an eventyes

Upper and lower case don't matter when comparing.

Actions

A rule can do several things, for example add a label and mark as read.

ActionWhat happens
Move toThe message goes into the chosen folder instead of the inbox.
Add labelThe message gets a label. It stays in the inbox unless you also move it.
Mark as readThe message doesn't count as unread.
StarThe message gets a star.
Forward toA copy goes to another address.
Move to trashThe message goes straight to the trash, where you can still restore it.

Order and "Then stop"

Mail checks the rules from top to bottom. When several match, all of them apply. If several rules move to different folders, the last one wins. Change the order with the arrows beside each rule.

When a rule has Then stop: no later rules turned on, Mail checks no further rules after it. So put very specific rules at the top and turn on "Then stop" there.

Applying rules to existing mail

New rules only apply to messages that arrive from now on. To tidy up your inbox, choose Run over the inbox now on the rule: Mail applies that one rule to the messages already in the inbox. Other folders and the other rules are left as they are.

Turning rules off and deleting them

Rule on turns a rule off for a while without losing it. Delete rule removes it for good.

Examples

Newsletters into a folder
When From a mailing list is yes, then Move to "Newsletters".

Collecting invoices
When Subject contains "Invoice" and Has attachments is yes (all of these match), then Add label "Invoices".

Filing a service's notifications quietly
When From domain is notifications.example.com, then Move to "Notifications" and Mark as read, and Then stop: no later rules.

Office Help