Account filters can be used to handle mail from a particular sender in the desired way: to redirect it to another account, place it in a folder, fail with a message to the sender, delete it with no message to sender, or pipe it to a program.
To set up a filter click on Create New Filter
Give your filter a name; select the proper field from the first drop-down list, and the type of match you want from the second one. Regex expression matching is incredibly powerful but to use it you will either have to hire someone from Fiverr.com, get help at regex advice forums or study a book on regular expressions.
When you are finished click on create. Now go back to the first page to test your filter. Modify the field that your filter refers to in the test email and click Test Filter. You will get a results page like this: