Virtual folders
A virtual folder is a named set of messages from one mailbox. The messages are not moved or copied. You usually fill a folder from a search with Save to folder, which adds every result at once. You can then add or remove messages by hand. A message can sit in several folders. The folder keeps the messages it received, and it remembers the search that created it.
How do I save a search to a folder?
- Run a search, for example
from:oliviaorlabel:Invoices after:2026. - In the header of the message list, click Save to folder (the folder icon with a small arrow).
- Choose an existing folder, or choose New folder… to create one.
With New folder…, the dialog suggests a name. For a search made of a single label:, tag:
or folder: term, the suggestion is that name. For any other search it is the search text. The
dialog shows how many results it will add. When the folder is filled, the app shows a
confirmation with the folder name.
The button adds every result of the search, up to 500,000 messages, even those you have not scrolled to. A search with more results is refused and nothing is added. The button appears only when a search is active and has at least one result.
How do I create an empty folder?
Click the + button of the Folders section in the sidebar (its tooltip reads New
folder). Type the name and press Enter, or press Esc to cancel. A folder created this way has
no stored search.
Folder names follow the same rules as tag names:
- A name holds at most 60 characters.
- A name is unique in its mailbox, and case does not count.
- A name cannot contain quotation marks or control characters.
How do I add messages by hand?
Select the messages first (see Select several messages). Then use one of these methods:
- Right-click the selection, open Add to folder and choose a folder. New folder… at the bottom of that submenu creates a folder that contains the selection.
- Drag the selection onto a folder in the sidebar.
The app confirms with the folder name and the number of messages. Adding a message that is already in the folder changes nothing.
How do I remove messages from a folder?
- Click the folder in the sidebar, so that the search holds
folder:"Name". - Select the messages to take out.
- Right-click them and choose Remove from “Name”.
This item appears only while the current search contains that folder. The messages stay in the mailbox and in their other folders.
How do I open a folder?
Click the folder in the Folders section of the sidebar. The search bar then holds
folder:"Name". A second click on the same folder shows every message again. The folder chips
under the subject in the reading pane open the folder as well.
The folder: operator combines with every other operator:
| Search | Finds |
|---|---|
folder:Trips |
Messages in the folder Trips |
folder:"Invoices 2026" -tag:paid |
Messages of the folder that lack the tag paid |
-folder:Trips from:olivia |
Messages from Olivia that are not in the folder |
folder:Trips has:attachment |
Messages of the folder that have an attachment |
How do I refresh a folder with new matches?
A folder created from a search remembers that search. Right-click the folder and choose Run the original search again. The list then shows the current results of the search, and the folder itself does not change. To add the new matches, click Save to folder and choose the same folder. Messages already in it stay there once.
How do I rename or delete a folder?
Right-click the folder in the sidebar, or click its … button, which appears when the pointer is over the row.
| Item | Effect |
|---|---|
| Rename | Edits the name in place. Enter saves and Esc cancels. |
| Run the original search again | Runs the stored search. It appears only for a folder created from a search. |
| Delete… | Asks for confirmation, then deletes the folder. The messages stay in the mailbox. |
Renaming a folder also rewrites the stored searches of the other folders that mention it.
Where are folders stored?
Folders are stored in the same file as the tags. That file is annotations/<mailbox id>.json in
the app data folder. On
macOS that is ~/Library/Application Support/com.mboxviewer.viewer/annotations/. On Windows it is
%LOCALAPPDATA%\com.mboxviewer.viewer\annotations\. Folders are tied to each message the same way
as tags.
Frequently asked questions
What is a virtual folder?
A virtual folder is a named set of messages from one mailbox. The messages stay where they are in the mbox file, and a message can belong to several folders at once.
Does a folder update itself when new messages match its search?
No. A folder keeps the messages it received and is never re-evaluated. Run the search again and save it to the same folder to add the new matches.
How many messages can I save from one search?
Save to folder accepts up to 500,000 results. Above that limit the app shows "Too many results" and adds nothing, so you need to narrow the search first.
Does Save to folder add only the messages I can see?
No. It adds every result of the search, including the ones the list has not loaded yet. When you choose New folder…, the dialog shows how many results it will add.
How do I take a message out of a folder?
Open the folder, right-click the message and choose Remove from “Name”. The message leaves the folder and stays in the mailbox.
Does deleting a folder delete its messages?
No. Deleting a folder removes only the folder. Every message stays in the mailbox, and the confirmation dialog says how many messages the folder contains.
Can a message be in several folders?
Yes. A message can belong to any number of folders. The reading pane lists the folders of the open message under its subject.
What is the difference between a folder and a tag?
A tag has a color and shows as a dot on each row of the list. A folder has no color, and it can remember the search that filled it. Both are stored outside the mbox file, and both work in searches.
Do folders survive a reindex?
Yes. Folders are tied to the Message-ID header of each message and stored apart from the index. A reindex, a moved file or a renamed file keeps them.