Sign in

Gmail Help


Hide

Use Google Apps for work? Learn more about Mail in the Google Apps Learning Center.

Boolean operators in searches and filters

Print
Gmail's advanced operators will help you make your search and filter criteria more specific. For example, to create a filter for messages from 'GoogleAmy@gmail.com' and messages that contain the subject line 'Meeting Reminder,' you can enter 'from:GoogleAmy@gmail.com OR subject:'meeting reminder' in the 'Has the words:' field.

Here's how to clarify your filter criteria with advanced operators:

  1. Sign in to Gmail.
  2. Click 'Create a filter' at the top of any Gmail page.
  3. Enter your filter criteria. In the 'Has the words:' field, you can use any advanced operators to filter messages meeting various criteria. Please note that the 'or' function in Gmail is represented by 'OR,' and the 'not' function is represented by a minus (-). You also can use quotes (" ") to specify an exact phrase.
  4. Click 'Next Step' and select the action you'd like these messages to take.
  5. Click 'Create Filter.'

To use advanced operators in your searches, click 'Show search options' to the right of the search field, and enter your search terms and advanced operators in the appropriate fields.

You can check out a list of Gmail's advanced operators here.

* Check out search as you have never seen it before. Gmail Theater presents an ensemble cast of engineers in The The Isle of Lost Emails. Watch the video on YouTube. *

Think you can write a better article? Click this link to visit Knol and try your hand at editing this entry. We're using Knol in the Help Center so you can update articles and share community-edited information with others.

updated 8/19/2009

Was this information helpful?

Known issues with Gmail

Review our Known Issues page for a list of known bugs, suggested workarounds and recent fixes.

Help resources