Open Gmail
Click the gear icon
Select See all settings
Go to the Filters and Blocked Addresses tab
Click Create a new filter
Enter the filter criteria
Click Create filter
Choose the actions you want Gmail to apply
Click Create filter to save the rule
