When your Outlook inbox fills with hundreds of messages, tracking which emails still need a reply or action becomes a daily chore. The built-in flag system lets you mark messages for follow-up, but clicking through each folder to spot flagged items wastes time. Outlook includes a search operator called hasflag:yes that instantly shows only emails with an active follow-up flag. This article explains what this operator does, how to use it correctly, and what to do when it returns unexpected results.
Key Takeaways: Find Flagged Emails Fast with hasflag:yes
- Search box in any folder: Type hasflag:yes and press Enter to show only emails with an active follow-up flag.
- Search > Search Tools > Search On: Switch search scope from Current Folder to All Mailboxes when you need to find flagged emails across all accounts.
- Flagged Items folder in Outlook: Navigate to Search Folders > Flagged Items for a persistent view of all flagged emails without typing a query each time.
What the hasflag:yes Search Operator Does
Outlook uses search operators as special keywords that filter results based on email properties. The hasflag:yes operator returns only messages that currently have a follow-up flag set. A follow-up flag is the red flag icon that appears next to an email subject line when you mark it for action. Outlook also supports hasflag:no to show messages without a flag and hasflag:complete to show messages where the flag was marked as done.
The operator works in Outlook 2016, Outlook 2019, Outlook 2021, and Outlook for Microsoft 365 on Windows. It does not work in Outlook for Mac or Outlook on the web. The search is case-insensitive, so hasflag:YES and HasFlag:yes produce the same results.
What Counts as an Open Follow-Up
A message has an open follow-up when you have applied a flag and have not yet marked it as complete. Outlook shows a red flag icon in the message list for open flags. If you right-click a flagged message and select Mark Complete, the flag icon changes to a checkmark and the hasflag:yes operator no longer returns that message. Only the hasflag:complete operator returns completed flags.
What the Operator Does Not Find
The hasflag:yes operator does not find emails with categories, color labels, or custom flags that use a different flag color. It also ignores emails with reminder flags that were set using the Follow Up > Add Reminder dialog but then dismissed. Only the standard red flag icon triggers a match.
Steps to Use hasflag:yes in Outlook
- Open the folder you want to search
Click any mail folder in the navigation pane, such as Inbox, Sent Items, or a specific subfolder. The search will scan only that folder and its subfolders unless you change the scope. - Click the search box
Press Ctrl+E or click the Search box at the top of the message list. The Search tab appears on the ribbon. - Type hasflag:yes
Type hasflag:yes exactly as shown. Do not add spaces before or after the colon. Press Enter. Outlook filters the list to show only messages with an active follow-up flag. - Review the results
The message list now contains only flagged emails. Each flagged message shows a red flag icon next to the subject line. If you see no results, verify that at least one message in the current folder has a flag applied. - Clear the search
Click the X button at the right end of the search box or press Escape to return to the full message list.
Search All Mailboxes Instead of One Folder
- Click the search box
Press Ctrl+E to activate the search box. - Click Search > Search Tools > Search On
On the Search tab, click Search Tools and then click Search On. Select All Mailboxes from the list. The search scope changes immediately. - Type hasflag:yes
Type hasflag:yes in the search box and press Enter. Outlook now scans every mailbox you have added to your profile and shows all flagged messages in one combined list.
Use the Flagged Items Search Folder as a Persistent Alternative
- Expand Search Folders in the navigation pane
In the folder pane on the left, scroll down until you see Search Folders. Click the arrow to expand the list. - Click Flagged Items
Double-click the Flagged Items search folder. Outlook displays all messages with open flags across all folders in the current mailbox. This folder updates automatically as you flag or unflag messages. - Create a custom search folder if needed
Right-click Search Folders and select New Search Folder. Choose Mail flagged for follow up and click OK. You can name the folder anything you want for quick access.
Common Issues When Using hasflag:yes
hasflag:yes Returns No Results Even Though I Have Flagged Emails
This happens when the search scope is set to a folder that does not contain the flagged emails. For example, if you are in the Sent Items folder and your flagged emails are all in the Inbox, the operator returns nothing. Click Search > Search Tools > Search On and select All Mailboxes. If the problem persists, check that the flags are not marked as complete. Completed flags require the hasflag:complete operator instead.
hasflag:yes Shows Emails with a Checkmark Instead of a Red Flag
This indicates that the flag was set as a completed flag from the start. When you apply a flag using the Follow Up > Mark Complete option, Outlook places a checkmark icon and the hasflag:yes operator still returns that message because the flag exists. To exclude completed flags, use the query hasflag:yes AND hasflag:no which filters out messages with a completed status. A cleaner approach is to use the Flagged Items search folder that already excludes completed flags.
The Search Operator Works Slowly on Large Mailboxes
When you search All Mailboxes on a mailbox with more than 50,000 items, the query may take 10 to 30 seconds to complete. This is normal because Outlook must scan every folder. To speed up the search, limit the scope to a specific folder such as Inbox or use the Flagged Items search folder that maintains a prebuilt index of flagged messages.
| Item | hasflag:yes search operator | Flagged Items search folder |
|---|---|---|
| Setup effort | None — type the operator in the search box | One-time — click Flagged Items in Search Folders |
| Scope | Current folder or All Mailboxes (user selects) | Entire mailbox automatically |
| Updates in real time | Yes — results refresh each time you press Enter | Yes — folder updates as flags change |
| Works with completed flags | No — shows only open flags | No — shows only open flags |
| Requires typing | Yes — each time you want to search | No — folder is always visible |
The hasflag:yes operator is a fast tool for ad-hoc searches. The Flagged Items search folder is better for users who check flagged emails multiple times per day because it eliminates the need to type the query each time.
Conclusion
The hasflag:yes search operator gives you a direct way to display only emails with an open follow-up flag in Outlook. You can use it in any folder or expand the search to all mailboxes by changing the scope via Search > Search Tools > Search On. If you find yourself running this query repeatedly, create a custom search folder for flagged items to save time. For power users, combine hasflag:yes with other operators like from: or subject: to narrow results further, for example from:john hasflag:yes to find flagged emails from a specific sender.