To make a new filter in Gmail: Gmail can filter messages by From, To, or Subject fields. Look closely at Gmail’s guesses and modify them if necessary. You can also filter messages that do or do not contain certain words. You can get specific with this feature. For example, you may want to apply a filter to references to “Java” that do not also contain the word “coffee” or “island.”  You can enter size restrictions by listing a “greater than” or “less than” size in megabytes or kilobytes. At the bottom of the filter window, place a check next to Has attachment or Don’t include chats to add these options to the filter. After you’re satisfied with your filter criteria, click Create filter to open a screen containing actions Gmail can take on the filtered emails. Be as detailed as you like with categories and labels, or keep things simple by filtering solely by sender, co-workers, or family. Clicking the box next to Also apply filter to matching conversations will instruct Gmail to apply the filter immediately to every matching email you have. After you’ve completed this step, click Create Filter to finish. If you ever want to change the settings or check to see which filters you’re using, log in to Gmail and go to Settings > See All Settings > Filters and Blocked Addresses. Place a check in the box in front of a filter name. Next to each of the filters are links to edit and delete.

Click the edit link to return to the filter setup screen and make any changes there, or click Continue and make changes to the filter actions.Click delete to remove the chosen filter.

Now that you’ve mastered filters, you can combine them with other Gmail hacks to create a custom email address you can filter automatically.