ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Gmail - How To Create A Customized Filter To Perform Tasks On Email Messages Automatically

Updated on July 13, 2013

Gmail; using Google's smarts to sort out your email inbox

Google is a company that is built on making search better. As such, it should not come as a surprise that there are in-built tools within Gmail (arguably the second-most recognised product from Google itself) that helps to make your life easier.

One tool is the ability to filter both incoming and existing emails and perform tasks on them. The tasks available are to:

  • Skip the Inbox (archive it)
  • Mark as read
  • Star it
  • Apply a label (we'll talk much more about this later)
  • Forward it
  • Delete it
  • Never send it to Spam
  • Always mark it as important
  • Never mark it as important
  • Categorize it as ....

This article would briefly go through the various option, with an emphasis on automatically creating adding label(s) to emails for keeping your Gmail tidy.

To find out how to create a label to sort and categorize your emails, check out my Hub here.

Creating a Filter

To create a filter, first you have to go to Settings. Click on the gear-looking icon on the top right side and select "Settings" on the drop-down menu that appears.

Then click on "Filters" on the Settings page. You can either create a new filter or edit a filter that was set up previously.

For this Hub, we shall look at how to create a new filter. Click on the "Create a new filter" link at the bottom of the dialogue box.

Criteria to Search For

You will then see an option dialogue box appear from below the search text box. This is where you enter the parameters you want your new filter to, well, filter your mails by. For every filter, you can get Gmail to filter your emails by:

  • Sender ("From")
  • Recipient ("To")
  • What is in the subject line of the email ("Subject")
  • Contains certain words or phrases ("Has the words")
  • Does not contains certain words or phrases ("Doesn't have")
  • Contains an attachment ("Has attachment")

Note that there are some overlaps in the categories, as "Has the words" would work if the word was found in the subject line of the email too, thus overlapping with the functionality of the "Subject" filter.

For the example on the right, I am trying to filter for all emails from Google's Gmail support team, and hence I've added their email address into the "From" field.

Action To Be Done

After inputting the search criteria, you would have to choose an action for Gmail to take once the search criteria is fulfilled. In my example, the action(s) I choose would apply to emails coming from the Gmail team.

Most action are straightforward; their names state what they would do. However, I find "Apply the label" very useful and would like to talk a little more about it.

"Apply the label" is very useful for categorising your emails with labels. For the purpose of setting up filters, you can either set the filter to automatically add an existing label or a new label to all emails that match the search criteria. You can set labels for important emails, to separate work with personal emails, etc. With this action set in your filter, you now have an automagically-sorting Inbox!

You can create a new label while creating your filter, but if you want to find out how to create a label from scratch, do check out my Hub on How To Create A Customised Label To Categorize And Sort Your Inbox.

And You Have A Filter

And there you have it, you have set up an automated task within Gmail to help sort your emails according to how you want them.

If you have used routed emails to a label, you will see the labels being applied automatically to every email that meets the search criteria.


    0 of 8192 characters used
    Post Comment

    • SigninEmail profile image

      Sign in Email 

      2 years ago from CA, USA

      This post is really very helpful for every regular gmail users. If someone have these types of problem and bugs so i think this is correct. Now i have no any doubt for my gmail account. Thanks for publisher...


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)