Searching for a specific email with a file attached can be slow when scrolling through your inbox. Outlook provides several built-in search tools designed to filter for attachments. This article explains the fastest methods to locate emails containing attachments using search folders, instant search, and advanced filters.
Key Takeaways: Finding Emails With Attachments
- Instant Search box with hasattachment:yes: Instantly filters the current folder view to show only messages that have files attached.
- Search Tools > Has Attachments > Yes: Applies a graphical filter from the ribbon for users who prefer clicking over typing queries.
- Creating a Search Folder for mail with attachments: Sets up a permanent, virtual folder that aggregates all messages with attachments from across multiple mailboxes.
Outlook’s Search Tools for Attachments
Outlook indexes all message content, including metadata like attachment flags. This allows its search function to filter messages based on whether they contain an attached file. You do not need to know the attachment’s filename to use these filters. The primary methods are the Instant Search box, the Search ribbon tab, and a more permanent Search Folder. All methods work with emails stored locally in a PST file or on a Microsoft 365 or Exchange server.
Prerequisites for Effective Searching
For search to work correctly, Windows Search must be running and indexing your Outlook data files. This is typically enabled by default. If your searches return incomplete results, you may need to rebuild the Windows Search index via Control Panel. Also, ensure you are searching within the correct scope, such as “Current Folder” or “All Mailboxes,” using the dropdown next to the search box.
Steps to Filter Emails With Attachments
Method 1: Using the Instant Search Box
This is the quickest way for a one-time search in your current folder view.
- Click in the Search Box
Navigate to your Mail folder list and click inside the “Search Current Mailbox” box at the top of the message list. You can also press Ctrl+E to jump directly to it. - Type the Search Query
Enter the following search keyword exactly:hasattachment:yes. As you type, Outlook will immediately filter the view below. - Review the Results
The message list now shows only emails with attachments. You can sort this list by date, sender, or subject to find your target. - Clear the Search
Click the X on the right side of the search box to return to the normal folder view.
Method 2: Using the Search Ribbon Tools
This graphical method is helpful if you prefer not to remember search syntax.
- Activate the Search Tab
Click inside the search box or on a mail folder. The Search contextual tab will appear on the ribbon. - Apply the Attachment Filter
On the Search tab, go to the Refine group. Click the “Has Attachments” button and select “Yes” from the dropdown menu. - Add Other Filters if Needed
While the attachment filter is active, you can further refine by sender using the “From” button or by date using the “Received” button. - Close Search
Click “Close Search” on the far right of the Search ribbon tab to exit the filtered view.
Method 3: Creating a Search Folder for Attachments
A Search Folder is a virtual folder that displays emails matching specific criteria from multiple folders. It updates automatically.
- Create a New Search Folder
Right-click on “Search Folders” in your folder navigation pane. Select “New Search Folder.” - Select the Template
In the dialog box, scroll down in the list and select “Mail with attachments.” - Choose the Search Scope
In the “Search mail in” dropdown, select the scope, such as “Current Mailbox” or a specific account. Click OK. - Use the Persistent Folder
The new “Mail with attachments” folder appears under Search Folders. Click it anytime to see all emails with attachments across the chosen scope.
Common Mistakes and Limitations
Search Returns Emails Without Visible Attachments
Some emails, like meeting invitations with calendar attachments or digitally signed messages, have hidden attachments. The hasattachment:yes query will include these. To exclude them, use the Advanced Find dialog and specify that the attachment count is greater than zero, though this is a more complex process.
Search Folder Shows No Items or Incomplete Results
This usually indicates an indexing problem. First, check that you are searching within the correct mailbox in the Search Folder criteria. If the scope is correct, rebuild the Windows Search index via Control Panel > Indexing Options > Advanced > Rebuild.
Search Syntax Does Not Work
Ensure you are using the correct property name and colon. The syntax is case-insensitive but must not have spaces around the colon. hasattachment:yes is correct; hasattachment : yes will fail. For older Outlook versions, the keyword hasattachments might also work.
Search Methods for Attachments: Comparison
| Item | Instant Search (hasattachment:yes) | Search Folder for Attachments |
|---|---|---|
| Speed | Instant results as you type | Requires one-time setup, then instant access |
| Persistence | Filter is lost when search is cleared | Permanent virtual folder that always updates |
| Search Scope | Limited to the current folder by default | Can span the entire mailbox or multiple folders |
| Best For | Quick, one-time searches in a specific folder | Ongoing monitoring of all incoming/old emails with attachments |
| Complexity | Requires remembering syntax or using the ribbon | Setup required, but then just click the folder |
You can now quickly locate any email with an attachment using Outlook’s search filters. For managing found items, try right-clicking an attachment in the reading pane to save it directly. A related feature to explore is using the hasattachment:no query to clean up your inbox by finding messages without files. For power users, the Advanced Find dialog offers even more granular control, such as searching for emails with a specific number of attachments.