What is the purpose of "Apply Rules" in mail?
To add a rule in Mail, open Mail preferences (Mail > Preferences… or ⌘+,) and go to the Rules pane.



The Apply Rules function applies to all rules whose "Active" checkbox is ticked.