Mailloft rules, folders, Junk, archive and delete
Set up Mailloft rules, move and copy mail between folders, and see exactly how Archive, Trash, Delete Permanently and Junk behave on your server.
Updated 8 min read
On this page
This page shows you how to set up Mailloft rules that sort mail automatically, move and copy messages between folders, and what Archive, Move to Trash, Delete Permanently and Junk actually do on your mail server.
Rules in Mailloft are local. They run on this Mac, on new Inbox mail, while Mailloft is open. They are not server-side filters, so they don't run when Mailloft is quit and they don't sync to other Macs.
Create a rule in Mailloft
You can start a rule from scratch or from a message you already have.


From scratch:
- Press ⌘, (Command-Comma) to open Settings.
- Click Rules in the sidebar.
- Click Add Rule….
- Under When a new message arrives, choose whether the message must match all or any of these conditions.
- Add one or more conditions (field, operator, value).
- Under Then, add one or more actions.
From a message:
- Right-click a message in the list.
- Choose Create Rule from Selection….
- The editor opens with a condition filled in from the message's mailing list (List-Id) or its sender. Adjust the conditions and actions.
Starting from a message is the quickest way to file a newsletter or a notification sender, because the condition is already filled in.
Conditions and actions you can use
| Part | Options |
|---|---|
| Match | all or any of the conditions |
| Condition fields | From, To, Cc, Subject, Body, Sender Domain, Mailing List, Attachment, Account |
| Operators | contains, doesn't contain, is, is not, begins with, ends with |
| Actions | Move to Folder, Archive, Move to Trash, Mark as Read, Star, Move to Tab, Notify, Don't Notify |
A few details:
- Body matches only the preview text Mailloft has fetched for the message, not the full body. If the words you need are far down in the message, match on Subject, From or Mailing List instead.
- Account limits a rule to one account when you have several.
- Move to Tab puts matching mail in one of the inbox tabs. See Inbox tabs, quick filters, VIPs and sidebar filters.
- Don't Notify keeps matching mail from showing a new-mail banner.
When rules run, and how to apply one to existing mail
The rule editor says it plainly: "Runs on new Inbox mail while Mailloft is open." In practice that means:
- Only new mail. A rule acts on messages that arrive after you create it, not on mail already in your inbox.
- Only the Inbox. Mail arriving in other folders isn't checked.
- Only while Mailloft runs. If Mailloft is quit, nothing is sorted. The optional background helper (Settings ▸ Writing ▸ Sending) sends scheduled mail and brings back snoozes, but it does not run rules.
- Only this Mac. Rules are stored locally and don't run in other mail apps, on your phone or on your other Macs.
To run a rule on mail that's already in your inbox, including mail that arrived while Mailloft was closed, open the rule in Settings ▸ Rules and use Apply to Inbox…. It runs the rule once on your current Inbox mail.
Manage your rules
In Settings ▸ Rules:


- Edit… opens a rule in the editor.
- Move Up / Move Down change the order of the list.
- The on/off switch disables a rule without deleting it.
- Delete Rule removes it.
- Recent Activity logs what your rules did. Clear Activity empties the log.
When a rule moves mail you didn't expect, look at Recent Activity first.
Move or copy messages to a folder
Move to Folder… and Copy to Folder… open a type-ahead palette that lists folders from every account, with recently used folders first. Start typing a folder name to narrow the list.
Ways to move:
- Press V (Mailloft, Gmail and Superhuman keyboard presets).
- Press ⇧⌘M (Shift-Command-M).
- Right-click the message and choose Move to Folder… or Copy to Folder….
- Press ⌘K and choose Move to Folder… or Copy to Folder…. See Use the command bar (⌘K).
- Click Move in the toolbar. It isn't in the default toolbar; add it with View ▸ Customize Toolbar….
- Drag rows onto a folder in the sidebar. Hold ⌥ (Option) while dragging to copy instead of move.
To move many conversations at once, select them (⌘-click, ⇧-click or ⌘A) and use Move in the reader column. One Undo restores everything. See Triage your inbox from the keyboard.
Moving between accounts: IMAP can't move a message from one server to another directly. Mailloft copies the message to the other account, keeping its flags and date, and then deletes the original.


Create, rename and delete folders
Right-click a folder in the sidebar:
| Command | What it does |
|---|---|
| New Folder… | Creates a folder for that account |
New Folder Inside "<name>"… | Creates a subfolder |
| Rename… | Renames the folder |
| Delete… | Deletes the folder and every message in it from the server |
| Pin to Sidebar | Adds the folder to Favorites in the sidebar (Unpin from Sidebar removes it) |
| Empty Junk… | Only on the Junk folder; see Junk below |
Delete… is permanent. The folder and every message in it are deleted from the server, and this can't be undone. Move anything you want to keep out of the folder first.
Folders live on your mail server, so other mail apps and webmail see these changes too.
Archive
Archive moves the conversation to the account's Archive mailbox. For Gmail it goes to All Mail.
- Press E (Mailloft, Gmail, Superhuman and Outlook presets).
- Press ⌃⌘A (Control-Command-A).
- Click Archive in the toolbar.
If you see "These messages are already archived, or their account has no Archive mailbox.", the messages are either already archived or the account has no Archive folder. Use Move to Folder… to file them somewhere else.
Move to Trash and Delete Permanently
Move to Trash moves the message to the account's Trash:
- Press ⌘⌫ (Command-Delete).
- Press # (Mailloft, Gmail and Superhuman presets). In the Mailloft preset, # asks "Move to Trash?" first when one conversation is selected.
- Click Delete in the toolbar.
When the account has no Trash folder, or the message is already in Trash, the same command becomes Delete Permanently…, and Mailloft always asks first:
- For one message: "Delete Permanently?". Inside a conversation, the default deletes only the selected message. Delete Whole Conversation (N) is a separate button.
- For several messages: "Delete N Messages Permanently?".
Permanent delete removes the message from the server without passing through Trash.
When the server move actually happens (the undo window)
Archive and Move to Trash are deferred. The row leaves your list at once, but Mailloft waits before telling the server. That gives you time to click Undo in the toast at the bottom of the window, or press Z in the Mailloft, Gmail or Superhuman preset.
- The wait follows Settings ▸ Writing ▸ Sending ▸ Undo window: Off, 5, 10 (default), 20 or 30 seconds. The same setting controls Undo Send.
- With Off, archive and trash happen on the server immediately.
- If you quit Mailloft inside the window, it performs the pending moves before quitting (it waits up to 8 seconds).
- ⌘Z (Edit ▸ Undo) does not undo mail actions. Use the toast or Z.
Because the move waits, webmail or another mail app may still show the message in the Inbox for a few seconds after it disappears from Mailloft. That is expected.
Servers that can't remove single messages (no UIDPLUS)
Some IMAP servers don't support the UIDPLUS extension, which lets a mail app remove one specific message. On those servers, deleting works differently:
- Mailloft only marks the message as deleted and hides it.
- An alert explains this once per account.
- The message disappears for good when the server, or another mail app, compacts (expunges) that mailbox.
Mailloft never expunges a whole mailbox. Expunging removes every message marked as deleted in that mailbox, including ones another app marked. If marked messages pile up in webmail or another client, compact the folder there.
Junk
Move to Junk moves the message to the account's Junk mailbox and sets the $Junk keyword on it. You can undo it from the toast.
- Press ! (Mailloft, Gmail and Superhuman presets).
- Press ⇧⌘J (Shift-Command-J).
- Click Junk in the toolbar (add it with View ▸ Customize Toolbar…).
- Right-click the message, or press ⌘K.
Move to Junk and Block Sender also blocks the sender with The Screener, so their mail is hidden in Blocked on this Mac. See Screen first-time senders with The Screener.
When a message fails sender checks, Mailloft shows a "This message didn't pass sender checks." banner with Move to Junk and Block Sender buttons.
Reading mail in the Junk folder
- Messages are shown as plain text only. Images and links stay off.
- Attachments are hidden ("N attachments hidden in Junk").
- Not Junk moves the message back to the Inbox and allows the sender. ⇧⌘J also works here.
- Delete removes it.
Empty the Junk folder
Right-click the Junk folder in the sidebar and choose Empty Junk…. Mailloft asks first. The messages are deleted from the server for good.
Troubleshooting
A rule didn't run. Check that Mailloft was open when the mail arrived, that the mail landed in the Inbox and not another folder, and that the rule is switched on. For mail that arrived while Mailloft was closed, use Apply to Inbox…. Recent Activity shows what your rules did.
A Body condition doesn't match. Body only looks at the preview text Mailloft fetched. Match on Subject, From, Sender Domain or Mailing List instead.
"Already in "<folder>"." The message is already in the folder you picked. Nothing changed.
"There's no Junk mailbox to move this to." The account has no Junk folder. Use Move to Folder… to file the message elsewhere, or delete it.
"Couldn't Change the Folder" The folder couldn't be created, renamed or deleted. Check that you're online (the sidebar shows "Offline" if not) and that no folder with that name already exists, then try again.
Deleted mail still shows up in another app or webmail. Either the undo window hasn't ended yet (wait the number of seconds set in Undo window), or the server doesn't support UIDPLUS and the message is only marked deleted until the mailbox is compacted. See the section above.
"Mailloft can't reach this account right now." The account usually is offline or needs its password. See Troubleshoot Mailloft: sign-in, sending and sync.