Change Rule settings in Mail on Mac
Use Rule settings in Mail to create or change 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 settings in the Mail app on your Mac, choose Mail > Settings, click Rules, then click Add Rule or Edit.
Enter or change the description of the rule, which appears in the list of rules. For example, enter “Book club”.
If “any” or “all” of the following conditions are met
Choose whether a message must meet any (even just one) or all of the conditions you specify, then use the pop-up menus to set the conditions.
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 or remove a condition, click the Add button or the Remove button at the end of a row.
Perform the following actions
Use the pop-up menus to specify the actions to take when a message meets the conditions you set.
For example, to create an action, you might 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.