Guides · · 6 min read
Apple Mail: creating rules to sort your messages automatically
Creating rules in Apple Mail on the Mac to sort your messages automatically: steps checked against Apple’s guide, rule order, limits, and when a smart mailbox is the better choice.

Apple Mail rules move, mark or handle the messages that meet conditions you set: a given sender, a given word in the subject. Set up well, they clear your inbox of everything that comes back every week in the same form. Set up badly, they hide important messages in a folder nobody opens.
This guide follows the Mail User Guide published by Apple, consulted in November 2026 (macOS 27 version), and its section on rules in the macOS 15 version. Labels may vary slightly depending on your version of macOS.
What a rule is
A rule combines two things:
- conditions the message must meet, for example “Subject contains Book club”;
- actions to carry out when it does, for example “move the message to the Book club mailbox”.
That is the example Apple gives in its Rules settings page. Its section on sorting incoming email automatically describes rules as a way to manage incoming email and automate tasks such as replying to messages or deleting them.
Before you start: prepare the destination mailbox
If your rule is going to move messages, create the destination mailbox first: Mailbox > New Mailbox, then choose where it goes in the Location pop-up menu.
That choice matters, as Apple’s page on creating or deleting mailboxes explains:
- On My Mac: the mailbox is local, only available on this Mac;
- an account: the mailbox is created on the mail server and visible on all your devices that use that account.
If you also read your email on an iPhone or on the web, a mailbox created on the account is usually the better choice: moved messages stay visible there.
Creating a rule, step by step
- Open Mail, then choose Mail > Settings and click Rules.
- Click Add Rule.
- In the Description field, give the rule a clear name: “Supplier X invoices” rather than “Rule 3”. This name will appear in the list of rules.
- Choose whether the message must meet any of the conditions or all of them.
- Set the first condition with the pop-up menus. Apple’s example: “Subject” in the first menu, “contains” in the second, then the text to look for in the field. Click the add button at the end of the row to add a condition.
- To use a header field other than the ones offered, the macOS 15 guide says to choose Edit Header List at the bottom of the first pop-up menu.
- Under Perform the following actions, choose the action. To file messages, choose Move Message, then the destination mailbox. You can chain several actions with the add button.
- Click OK. In the version documented for macOS 15, Mail then asks whether you want to apply the rules to the messages already in your mailboxes.
Sources: Change Rules settings (macOS 27) and Use rules to manage emails you receive (macOS 15).
Applying a rule to messages already received
A new rule applies first to incoming messages. To apply it to those already there, the macOS 15 guide says to select the messages, then choose Message > Apply Rules. The keyboard shortcuts page of the macOS 27 guide gives Control-Command-L to apply active rules. Depending on your version of macOS, the exact menu label may differ.
Try it on a small selection first: a condition that is too broad can move far more messages than expected.
Order, turning off and duplicating
In the list of rules (Mail > Settings > Rules):
- a tick shows whether the rule is active; untick it to keep the rule without using it;
- order matters: rules are applied in the order of the list, and you can drag them to change it;
- Duplicate copies an existing rule, handy for creating a variation;
- Remove deletes a rule.
The macOS 15 guide also explains that Mail stops applying rules to a message when the Stop evaluating rules action is used. So put your most precise rules at the top of the list, followed by that action if you do not want a more general rule to pick up the message afterwards.
If you use iCloud Drive with Mail, your rules are available on your other Macs; files attached to rules, such as sounds or scripts, are not.
Three useful rules to start with
- A regular supplier’s invoices. Condition: the sender contains the supplier’s address or domain. Action: move to “Invoices”. Choose a condition on the sender rather than on the word “invoice” in the subject, which is too common in ordinary exchanges.
- Newsletters. Condition: the sender is one of a short list of known addresses. Action: move to “To read”. One rule per sender, easy to remove, is better than a catch-all rule.
- An important client or partner. Condition: the sender contains their domain. Action: highlighting (Apple gives the example of highlighting messages sent by a particular person) rather than moving, so their messages stay in the inbox.
Avoid rules that delete messages: a mistake in a condition goes unnoticed until you open the Trash.
What rules cannot do
Rules are useful, but you need to know their limits.
- They compare text; they do not understand meaning. “Subject contains quote” will also catch “Re: your quote has been declined” and miss “Costed proposal for your works”. An urgent request from a new sender matches no rule.
- They do not set priorities. A rule can move or highlight, but it does not know that one invoice is due tomorrow and the other in a month.
- They depend on Mail on this Mac. These are the Mail app’s rules; Apple notes for example that automatic replies or forwarding by rule work while Mail is open. The macOS 15 guide also says Mail stops applying its rules to a message moved by rules on the mail server or on another synced device. If you mostly read email on your iPhone, do not count on your Mac’s rules to sort while you are away.
- They need upkeep. If a supplier changes address, the rule stops working without warning.
The macOS 27 guide also describes automatic sorting into categories (Primary, Transactions, Updates, Promotions), flagged as not available everywhere. You can change a sender’s category there: Control-click one of their messages, then choose Categorize Sender.
Rule or smart mailbox?
A smart mailbox moves nothing: it shows, in one place, the messages that meet your criteria, wherever they are filed. To create one, choose Mailbox > New Smart Mailbox, give it a name, set the conditions (for example “From” followed by “contains”), tick whether to include Trash and Sent if needed, then click OK. Deleting a smart mailbox does not delete the messages it showed.
| You want to… | Rather a rule | Rather a smart mailbox |
|---|---|---|
| Take messages out of the inbox | Yes | No, it moves nothing |
| See together messages filed in several places | No | Yes |
| Test a criterion without risk | No | Yes, nothing is changed |
| Act on the message (move, mark) | Yes | No |
A good habit: test your criterion in a smart mailbox. If it shows exactly the right messages, turn it into a rule.
What Kantike can add
Rules handle repetitive things well. A new request, a deadline slipped into the middle of a message or an ambiguous file need to be read.
Kantike steps in there, without replacing your rules. On a Mail folder you choose, and when you ask, it reviews 5 to 50 messages and suggests for each a type, an expected action and a priority backed by the passage of the message it is based on. It does not run in the background and does not sort messages as they arrive. Before the analysis, it tells you what will be sent to your AI provider (sender, subject and the start of the text) and waits for your consent. How it works is detailed on the How it works page.