Searching mail and Smart Mailboxes
Search · Smart Mailboxes · Castellum
Castellum searches your synced mail on your Mac, so results are instant and need no connection. Plain words search the subject and text. Add operators to narrow the search.
1. Search
Press ⌘K (or choose Search > Search Mail), type, and press Return. Clear the field to go back to the mailbox. Hover over the search field for a reminder of the operators.
2. Operators
Combine as many as you like, separated by spaces: from:anna has:attachment after:2026-01-01.
| Type this | To find |
|---|---|
from:anna | Messages from a sender (name or address) |
to: cc: bcc: | Messages sent to, copied to or blind-copied to someone |
subject:invoice | Words in the subject |
body:refund | Words in the message text |
has:attachment | Messages with an attachment |
attachment:report.pdf | An attachment whose file name contains the text |
after:2026-01-01 before:2026-03-31 | Sent on or after / before a date (year-month-day) |
within:7d | Sent in the last 7 days (d days, w weeks, m months, y years) |
in:inbox | A mailbox type: inbox, drafts, sent, archive, junk or trash |
is:unread is:read is:flagged | Read state or flag. Also is:answered, is:draft, is:muted and is:vip |
tag:work | Messages with a tag |
"exact phrase" | That phrase, word for word |
-newsletter | Put - in front of anything to exclude it |
An operator Castellum does not recognise, or one with a value it cannot read (such as a date that is not a date), is searched for as ordinary text, never rejected.
3. Save a search
If you run the same search often, save it. Type your search, then click the save-search button in the toolbar (the magnifying glass with a plus). Give it a name and click save. It appears under Smart Mailboxes in the sidebar, with an unread count, and always shows the current matches. A search saved this way looks across all your accounts.
4. Smart Mailboxes from conditions
For more control, open the Conditions tab in the same sheet. Choose Match all / any / none of the following, then add conditions such as From, Subject, Has attachments, Date, Size, Account or Tag. Use the second plus button to add a nested group. Under Look in you can limit it to certain accounts or mailboxes.
Right-click a Smart Mailbox in the sidebar and choose Edit… to change it, or Delete to remove it. Deleting a Smart Mailbox never deletes any mail. You can drag Smart Mailboxes to reorder them.
The same conditions editor is used for rules. A Smart Mailbox can also be shown as a tab at the top of your Inbox: see Split Inbox.