How to Set Up Filters for Email
In the "Preferences" window select the "Mail Options" tab.
Click the plus symbol to create and edit a new filter.
This brings up a window which allows you to custom build a filter.
Press "Save and Close" to finish