Apple Mail Smart Mailboxes as saved searches (and Boolean search)
In Apple Mail, a saved search is a Smart Mailbox: choose Mailbox › New Smart Mailbox, add conditions, and pick whether mail must match any or all of them. One Smart Mailbox can't mix "any" and "all", so for searches like "from Anna or Ben, with an attachment" you either split it across two Smart Mailboxes or type it in the search field with AND, OR and NOT.
How do I create a Smart Mailbox in Apple Mail?
- In Mail on your Mac, choose Mailbox › New Smart Mailbox…
- Type a name in Smart Mailbox Name.
- Set the first condition, such as From contains
anna@example.com. - Click the + button to add more conditions.
- Next to "Contains messages that match", choose any or all of the following conditions.
- Tick Include messages from Trash or Include messages from Sent if you want those too.
- Click OK.
The Smart Mailbox appears in the sidebar under Smart Mailboxes, and it updates by itself as mail arrives. Apple covers the steps in its guide to sorting email with Smart Mailboxes in Mail on Mac.
A Smart Mailbox doesn't move or copy anything. It's a live view of mail that's already in your other mailboxes. Deleting one removes the view, not the mail. To change one later, right-click it and choose Edit Smart Mailbox…, and Duplicate Smart Mailbox gives you a copy to tweak. If you end up with a lot of them, Mailbox › New Smart Mailbox Folder… groups them.
What conditions can a Smart Mailbox use?
On macOS today, the list includes:
- From, Any recipient, Subject, Entire message, Any attachment name, each with contains, does not contain, begins with, ends with or is equal to
- Date received and Date last viewed (today, this week, in the last 7 days, between two dates, and more)
- Message is read or unread, flagged or unflagged, replied to or not replied to
- Contains attachments, Attachment type (PDF, Image, Document and others)
- Sender is VIP, Sender is member of group, Account, Priority
- Message is in mailbox, Message is not in mailbox
What are the limits of Smart Mailboxes?
One "any" or "all" per Smart Mailbox. Every condition in a Smart Mailbox is joined the same way. You can say "from Anna OR from Ben", or "from Anna AND has an attachment", but not "(Anna OR Ben) AND has an attachment" in a single one.
Not every condition has an opposite. Text fields have "does not contain", and read, flagged and replied each come in both versions. In the list on my Mac, I couldn't find a "not" version of Sender is VIP or Contains attachments.
It lives on the Mac. Smart Mailboxes don't show up in Mail on iPhone or in Gmail on the web.
The workaround: stack two Smart Mailboxes
Build the OR part first, for example a Smart Mailbox called "Anna or Ben" that matches any of From contains anna and From contains ben. Then make a second one that matches all of Contains attachments and Message is in mailbox. If your Smart Mailboxes appear in that mailbox menu, choose "Anna or Ben". If they don't, use the search field instead.
Can Apple Mail search use AND, OR and NOT?
Yes, in the search field. Apple's Mail guide says to type the operators in uppercase, and its example is yellowstone AND cascades NOT teton, also written as cascade AND yellowstone -teton. That's often quicker than building a Smart Mailbox for a one-off search. If search keeps coming up empty, see Apple Mail search not working.
How do I save a search in Gmail?
Gmail's search box understands a lot. Google's Refine searches in Gmail page lists the operators. The ones that do the Boolean work:
ORor braces:from:amy OR from:david, or{from:amy from:david}-to leave something out:dinner -movie- Parentheses to group words:
subject:(dinner movie) AROUNDfor words near each other:holiday AROUND 10 vacation
Gmail has no saved searches in the sidebar. The closest thing is a filter with a label:
- Click the search options icon in the search box and enter your search.
- Click Search to check the results.
- Click Create filter, choose to apply a label, and create it.
New mail that matches gets the label, and the label sits in your sidebar like a saved search, in Gmail and in any mail app that shows Gmail labels. Our Gmail search operators cheat sheet has the full list.
How do Smart Folders work in MailMind?
MailMind is the mail app I make for Mac, iPhone and iPad. A Smart Folder there is literally a saved search. Run any search, press Save, and it becomes a Smart Folder.
Because MailMind stores the search itself, every operator that works in search works in a Smart Folder. That includes OR (in capitals), -word, NOT word, "quoted phrases", from:, to:, subject:, label:, in:, filename:, has:attachment, is:unread, is:starred, after: and before:. A few examples:
from:bca OR from:mandirifor every bank email in one placehas:attachment filename:pdf -newsletterfor PDFs without the newslettersis:unread label:clientsfor client mail you haven't read yet
On the Mac, Smart Folders sit in the sidebar under Smart Folders. On iPhone, they're under Mailboxes › Smart Folders, and you swipe to delete one. They sync between your Mac and iPhone through iCloud, so a folder you save on one shows up on the other.
If you use the Gmail filter trick above, MailMind shows your Gmail filters in plain words and lets you add, change or delete them. They keep working in Gmail on the web.
The free version includes three Smart Folders. MailMind Pro ($4.99 a month, $29.99 a year, or $89.99 once) has no limit. Search itself, and everything else that isn't Pro, stays free. For how this compares with Apple Mail overall, see MailMind vs Apple Mail, or read how MailMind finds words inside PDF attachments.
Frequently asked questions
How do I make a Smart Mailbox in Apple Mail?
Choose Mailbox › New Smart Mailbox, give it a name, add your conditions, choose whether messages must match any or all of them, and click OK. It appears under Smart Mailboxes in the sidebar.
Can a Smart Mailbox use AND and OR together?
Not in one Smart Mailbox. Each one matches either any or all of its conditions. To mix them, split the logic across two Smart Mailboxes, or type a search with AND, OR and NOT in Mail's search field instead.
Do Smart Mailboxes sync to iPhone?
Apple Mail's Smart Mailboxes live in Mail on the Mac. The iPhone Mail app has its own mailbox filters but no Smart Mailboxes. MailMind's Smart Folders sync between Mac and iPhone through iCloud.
Can I save a search in Gmail?
Not as a saved search in the sidebar. The closest thing is a filter: run the search, open the search options, click Create filter, and have it apply a label. Then the label works like a saved search for matching mail.
How many Smart Folders can I make in MailMind?
Three on the free version. MailMind Pro has no limit.
A calm, private mail app for Mac, iPhone and iPad. Your mail stays on your devices, and the AI runs on them too. See what it does.
Get MailMind