Change Add Rule settings in Mail on Mac
Use Add Rule settings in Mail to create the conditions a message must meet for a rule to apply and the actions to take when the rule is applied. For example, you can create a rule to automatically move messages about book club events from your inbox to another mailbox.
To change these preferences in the Mail app on your Mac, choose Mail > Preferences, click Rules, then click Add Rule.
A description of the rule, which appears in the list of rules. For example, “book club.”
If “any” or “all” of the following conditions are met
The rule is applied when a message meets any (even just one) of the listed conditions, or only when it meets all of the conditions.
One or more conditions a message must meet.
For example, to create a condition, choose Subject from the first pop-up menu, Contains from the second one, then type “book club” in the text field.
To add a message header to the first pop-up menu, choose “Edit header list” from the bottom of the pop-up menu, click the Add button , enter a header name, then click OK.
To add or remove a condition, click the Add button or the Remove button at the end of a row.
Actions to take when a message meets the required conditions.
For example, to create an action, choose Move Message from the first pop-up menu, then choose a mailbox (such as “book club”) from the second one.
To add or remove an action, click the Add button or the Remove button at the end of a row.
If you use iCloud Drive, your rules are available on your other Mac computers that have iCloud Drive turned on and Mail selected in iCloud Drive options. Files attached to rules, such as sound files or scripts, aren’t available. See Use iCloud Drive to store documents.