Mail (El Capitan): Search for messages

Search for messages
Search for messages in Mail

You can search for messages in any or all mailboxes in Mail by using your own words—such as “emails from John sent yesterday”—or using Mail suggestions and search filters.

The mailbox being searched is highlighted in the search bar. To change scope, click a different mailbox. You can type or paste text into the search field, or drag an email address from a message. As you type, suggestions appear below the search field. They are organized into categories, such as Subject, Status, or Attachments, depending on your search text.

Tip:   If you know you want to search in specific mailboxes, select them in the Mail sidebar before you start.

Search using your own words

Enter your search phrase, then press Return.

Type what you’re looking for the same way you’d say it (this is called natural language search).

Here are some examples of natural language search phrases:

  • from emily

  • to emily

  • from emily yesterday

  • from emily 9/24/15

  • to emily about remodel

  • flagged emails

  • PDF attachments

  • Numbers file

As you type, Mail lists matching messages; when you press Return, it shows how many matches it found in the current mailbox. Each message preview shows the mailbox where the message is located.

If you don’t see the message you’re looking for, click a different mailbox in the Favorites bar. If you selected mailboxes in the sidebar before your search, click Selected Mailboxes.

Search using Mail suggestions and filters

  1. Start typing your search phrase, then choose one of the suggestions Mail provides.

    Mail creates a search filter in the search field and lists the matching messages it found in the selected mailbox.

  2. To refine the results, do any of the following:

    • Change search filters: If a search filter contains an arrow, you can click it to change the filter. For example, you can change a filter to search for messages to or from a certain person, or search subject lines or entire messages.

      Click the arrow in a search filter to change the filter.
    • Use multiple search filters: Place the pointer after the first filter, start typing search text, then choose a suggestion. Repeat as needed; the search field scrolls as you add more filters.

      Mail looks for messages that match all of the filters; the more you use, the more focused the search. If you don’t get expected results, remove some of the filters.

    • Search message headers: Type the name of a message header field, followed by a colon and the value you’re searching for—for example, “from: susan park” or “priority: high”—then choose a suggestion.

    • Search a mailbox that’s not in the Favorites bar: Type the name of the mailbox, choose the Mailbox suggestion, then type what you’re looking for after the Mailbox filter.

    • Search a range of dates: Type “date” followed by a colon and a date range—for example, “date: july” or “date: 9/05/14-10/05/14.”

    • Search using Boolean operators (AND, OR, NOT): Type your search text using Boolean operators (use uppercase).

      For example, to search for messages that contain “yellowstone” and “cascades” but not “teton,” type “yellowstone AND cascades NOT teton” or “cascade AND yellowstone -teton.”

Save a search

If you think you’ll search for a particular set of messages again, you can save your search to make it easier to find the messages next time.

  1. Click Save below the search field.

  2. Change the name (and other settings), if you want.

  3. Click OK.

Your search is saved as a Smart Mailbox; when you receive new messages that match the search filters, they’re automatically included in the Smart Mailbox. For more information, see Use Smart Mailboxes to organize messages.

When Mail searches all mailboxes, it searches in the Trash mailbox, but not the Junk mailbox; it doesn’t search encrypted messages, either. To change these options, choose Mail > Preferences, then click General.

> System Preferences, click Spotlight, click Search Results, then deselect the Mail & Messages checkbox in the list of categories.

Last Modified: Sep 30, 2015
Helpful?
34% of people found this helpful.

Additional Product Support Information