Enter a name for the Smart Mailbox.
For example, if you create a Smart Mailbox to organize emails from your soccer group that include an attachment, you could call it Soccer schedules.
Specify the criteria.
Change, add, or remove conditions, or change other criteria.
Click OK.
In the Mail app Use rules to manage emails you receive in Mail on Mac