How to setup rules (filters) in Apple Mail
Rules in Apple Mail are filters that you can use to sort incoming mail into folders.
Go to Mail.
And click Preferences.
Click Add Rule.
Enter a description.
Choose to sort if any or all the following conditions are met.
Select a condition.
This condition will sort any mail that contains the word Test.
Click plus to add another condition.
Set the action to be taken when the above conditions are met.
Now when the condition is met, the message will be moved to the Support mailbox.
Click Apply to apply the rule to messages in your mailbox.
That's it! Now you know how to create rules in Apple Mail.