A mail rule watches your Inbox and acts on messages that match what you describe — filing newsletters into a folder, marking a mailing list as read, deleting something you never want to see.
Open the Rules Manager from the
Tools menu (Ctrl+Shift+L) or the command
palette. A message open in its own window has the same Tools →
Rules… and key; from there the Rules Manager opens on that
message’s account, and closing it returns you to the message. It lists
the selected account’s rules, and beside the list a Rule
detail pane reads out the selected rule in full: what it
applies to, and what it does. Rules are written in a separate editor
window. New (Ctrl+N) opens it for a new
rule, and Edit — or Enter on a rule in
the list — opens it for the selected one. It is the same window whatever
kind of account you have; it shows what the selected account
supports.
Client-side and server-side. A rule QuickMail runs itself is a client-side rule: it is stored on this computer and it acts on your mail while QuickMail is open. A work or school account added with the Microsoft 365 (Graph) connection method can also carry server-side rules, which your mail provider runs for you whether QuickMail is open or not — see Microsoft 365: server-side rules. Every other account has client-side rules only, including a work or school account you added over Standard IMAP/SMTP. Each row in the rules list is marked on client or on server, and the status line says which kinds the selected account can have, so neither is ever a guess.
One account at a time. When you have more than one account, the Rules Manager opens on a single account chosen in an Account list at the top, rather than listing every account’s rules together. Choose the account whose rules you want, and the list below shows just that mailbox’s rules. If you have only one account there is no picker. It opens on the account you were in; see Rules belong to one account. This is the first thing to notice if you are used to seeing every account’s rules in one list: your rules are not gone, they are behind the account picker. The status line just below the picker says how many rules the account has, where they run, and which kinds that account can have — so an empty list is never a mystery. As you move through the Account list, each account also says how many rules it has (a status announcement, so it follows your Announce status setting). F6 cycles the panes — account list, rules, details, status line — so it reaches the status line and reads it back at any time.
The editor has the same parts whichever kind of rule you are writing.
Rule name — how you recognize it in the list. A rule must have one.
Enabled — turn a rule off without deleting it.
Apply when a message matches has three conditions:
How they work:
Jane matches
Jane Smith whichever address she writes from. It looks for your text
anywhere in the sender’s name and address, and also takes text with a
comma in it, which the address list would split. Check both and a
message has to match both: one person, at one address, and nobody else
using that name.@example.com, is compared with the sender’s actual
address, not the name they display, so nobody can match it by putting
that address in their name. Text without an @ still matches the
name.@example.com matches mail from or to example.com, but not
example.com.other.net, and bob@example.com does not match
jimbob@example.com. A fragment such as
@example or jane@, or a name, matches any
address or name that contains it.Then do this — Move to folder, Mark as read (client-side only), Delete, Play a sound (client-side only), and Stop processing more rules. Delete moves the message to the account’s Trash, which Microsoft 365 calls Deleted Items. Choosing Move to folder adds a Choose folder… button; the button then shows the folder you picked. The picker is the same folder tree used everywhere else you choose a destination, showing the folders of the rule’s own account — a rule files mail within one mailbox. It opens on the folder the rule already files into, or on the first folder for a new rule. If the folder you want to file into does not exist yet, activate New Folder (or Alt+N) in the picker to create one under the selected folder and target it without leaving the rule you are writing. When the button is offered, the account’s name is at the top of the tree; select it to create the folder at the top level, beside Inbox and Sent. The button is not offered for a rule QuickMail cannot tie to one account — a rule that has no account of its own, or an account whose folders have not been read yet. The picker then falls back to showing every account, where a folder created under the selected node could land in a different mailbox from the one the rule files in; you can still pick an existing folder there.
Advanced conditions & actions — more conditions (Subject or body contains, Body contains, Sent to me, Sent only to me, Has attachments, and Importance is) and more actions (Mark as unread, Copy to folder, Set importance to, and Forward to). The section starts collapsed for a new rule, and opens by itself when you edit a rule that uses anything in it, so editing never hides a field that is in use.
Save stores the rule and closes the editor; Cancel closes it without saving. A Move to folder, Copy to folder or Delete rule needs at least one condition — with none it would act on every message — so QuickMail will not save it until you add one. Mark as read, Mark as unread and Play a sound rules can have none.
Play a sound plays a sound when a rule runs, so you can tell mail from one sender by ear, or hear when something has been filed. Check it, then choose a sound, or choose Choose Sound File… to use your own WAV or MP3; focus then moves to Sound, which names your file. Default sound plays whatever the sound scheme in use has for A rule matched in Settings → Sounds, so changing that changes every rule set to the default. If the scheme sets it to None, those rules make no sound. It plays once each time the rule runs, however many messages it matched. It works even with Play sounds for mail events turned off, since adding it to a rule already asks for it. Mute All Sounds silences it, and it stays quiet during a presentation or while an app is running full screen. If the rule also moves or deletes the message, the sound only plays if that worked.
A rule’s sound is for mail arriving while QuickMail is running. Like the new-mail sound, it stays silent for mail that came in while QuickMail was closed, and when more than five matching messages arrive at once, such as when your computer wakes up. Run on Existing Mail stays silent too. A message a rule has played a sound for doesn’t also play the new-mail sound. Rules run in order, and one that moves or deletes a message takes it away from the rules after it, so put a rule that plays a sound first if another rule files the same mail.
What a client-side rule can use. A client-side rule can test Sender contains, From any of these addresses, Subject contains, Sent to any of these addresses, Subject or body contains, Body contains, and Has attachments. The two address conditions each take several addresses, and Sender contains can be used together with From any of these addresses, in which case both have to match. It has a single subject condition, so Subject contains and Subject or body contains cannot both be used in one rule; Save says so if you try. It can Mark as read or Mark as unread, Copy to folder, Move to folder or Delete, and Play a sound, and it can do more than one of them — but not mark a message both read and unread, or both move and delete it. It does them in that order: marking first, then copying, then moving or deleting, since after that the message is no longer in the Inbox. Mark as unread changes only this computer’s copy of the message, so it cannot be combined with moving or deleting, which would throw that copy away and the mark with it. A client-side rule cannot copy into the Inbox either: it runs on the Inbox, so each copy would be copied again on the next check. Everything else in the editor needs a server-side rule: Sent to me, Sent only to me, Importance is, Set importance to, Forward to, and Stop processing more rules. Mark as read, Mark as unread and Play a sound are the reverse — only a client-side rule can do them, which is why their labels say so. Editing never changes a rule’s kind, so a client-side rule stays client-side. Where a rule cannot become a server-side one, the editor turns those options off rather than offering them: on an account that has client-side rules only, and while you edit a rule that already runs in QuickMail, since editing never changes a rule’s kind. A line under Enabled says which of the two it is and names the options concerned; it is a Tab stop while it is there, so you meet it on the way through the form. Turned-off options are skipped by Tab, so you will not meet them while moving through the form. On a Microsoft 365 account a new rule still offers them — choosing one there is what makes the rule server-side. Save still refuses the combinations no client-side rule can hold, and names them: Subject contains with Subject or body contains, and Move to folder with Delete. While you edit a server-side rule, Mark as unread and Play a sound are unavailable, because the server has no way to do them, and so is Mark as read, unless the rule already has it — see Microsoft 365: server-side rules.
The order rules run in. Every enabled rule for the account is tried, and each one that matches acts. Server-side rules run on the server as mail is delivered, in the order the list shows; Move Up and Move Down change it, and Stop processing more rules tells the server to skip the server-side rules after it. Client-side rules run when QuickMail sees the mail, in the order they were created, and cannot be reordered. A client-side rule that moves or deletes a message takes it out of the running for the client-side rules after it, both on mail as it arrives and when you use Run on Existing Mail.
Rules run on your Inbox, on mail as it arrives — including mail that arrives while QuickMail is sitting open, not only at a full sync. A rule runs on a message when it arrives, however QuickMail first picks it up: the background check, or opening the Inbox a moment before that check comes round. If the Inbox is open when a matching message lands, the message can appear in the list for a moment before the rule acts on it. Rules only ever run on your Inbox, and this is deliberate: a rule never reaches back into Sent, Archive, Junk, Trash, or a folder you filed something into by hand, so nothing you deliberately put somewhere is moved or deleted behind your back. Mail already in the mailbox before a rule existed is left alone too, and so is older mail QuickMail shows for the first time because you widened the Sync range.
To apply your rules to mail that is already there, use Run on Existing Mail. It runs the selected account’s enabled client-side rules over that account’s Inbox — again, the Inbox only — across the mail QuickMail has stored locally. That can be more mail than the message list shows. When it finishes, the status line says how many rules ran, how many stored Inbox messages they ran on, how many messages were moved and deleted in all, and what each rule that acted did, for example “Ran 3 rules on 2,900 stored Inbox messages for the XS4All account. They moved 1,936 messages and deleted 6: techtalk moved 1,886; Newsletters moved 50; Spam deleted 6.” A rule name that could be mistaken for part of that sentence, because it has a number, a period, comma, colon or semicolon, or the word moved, deleted or failed in it, is shown in quotation marks, such as “Top 10” moved 5. A rule that moved or deleted nothing is not named. When more than five rules acted, the first five are named and the rest are added up together. A message two rules match is counted once, under the rule that took it first. A rule that matched messages but couldn’t move or delete them, for example because its folder has gone, says how many it failed on, and the log says why. (Marking read or unread and copying still happen; they are not counted.) If QuickMail has not read the account’s Inbox yet in this session, because it is offline or still connecting, the rules don’t run and the status line says so; try again once the account has connected.
Each rule watches one account: the one chosen in the Rules Manager’s Account list when you create it. The editor has no account field of its own, so to write a rule for another account, choose that account in the list first. Changing the list while the editor is open doesn’t move the rule: when you save, the list goes back to the rule’s account and selects it, and the status line starts by saying so, for example “Rule saved to Home.” The Rules Manager opens on the account you were in. From a view that spans accounts, such as All Inboxes, it opens on your default account — the one marked with Set Default in Account Manager. A rule made with Create Rule from Message belongs to that message’s account. Shared mailboxes are not in the list, because their rules are managed in Outlook; if you open the Rules Manager from one, it shows your default account instead, names that account in its title, and says why on its status line. See Shared mailboxes.
If you had rules from an earlier version that applied to all accounts, QuickMail converts each one into a separate rule for every account that is not connected through Microsoft 365 directly, the first time it starts, so they keep doing what they did there. An old rule is never copied onto a Microsoft 365 mailbox, so it cannot start acting on one without your say-so; in a profile whose only accounts are Microsoft 365, it is dropped and the reason is written to the log.
The list shows one account at a time, so a row does not repeat the account: it says the rule’s name, where it runs, and whether it is enabled. Turn on Show field labels in the rules list in Settings → General → Screen Reader Announcements to hear those pieces named (“Rule … runs … status …”) rather than run together.
In the list, Enter edits the selected rule,
Space turns it on or off, and Delete
deletes it after asking. The buttons below the list are
New, Edit, Delete,
Enable or Disable, Move
Up, Move Down, Test,
Run on Existing Mail, and Close; most
are on the list’s context menu as well, and every one is in the command
palette (Ctrl+Shift+P). Escape closes the
window.
Test runs the selected client-side rule against the messages that were in the message list when you opened the Rules Manager, and says how many of them it would match, so you can check a rule before letting it loose, for example “This rule would match 1,108 of the 2,526 messages in the message list for the XS4All account.” Only messages in the rule’s own account are counted, because the rule never acts on any others.
Test and Run on Existing Mail count different things, so their numbers usually differ. Test checks only the selected rule, against only the messages in the message list. Run on Existing Mail runs every enabled client-side rule for the account, against all the Inbox mail QuickMail has stored, which can be more than the list shows. It also counts only what a rule moved or deleted, and once a rule has moved or deleted a message, the rules after it don’t count it again.
Sent to and older mail. QuickMail started keeping each message’s Cc line in version 0.8.76. For mail it had stored before then, Run on Existing Mail can see the Cc line only for POP3 mail and messages you had opened; other older mail has it once you open its folder again. Until then a Sent to condition matches that older mail on its To line only. New mail is not affected.
Select a message and choose Create Rule from Message
(Ctrl+Shift+T) from the Message menu, the
context menu or the command palette. In a message open in its own window
it is on that window’s Message menu, key and command
palette, and uses the message the window is showing. QuickMail opens a
new rule pre-filled from that message. The sender’s email address goes
in From any of these addresses,
checked, so the rule matches everything from that
address and doesn’t also catch someone else using the same name. Their
name goes in Sender contains,
unchecked: check it too for a rule that needs both the
address and the name, though the name a sender shows can change with the
program they write from. If QuickMail doesn’t have the sender’s address
yet, it fills in the name alone, in Sender contains,
checked. The subject is filled in too, but its condition starts
unchecked — a rule that has to match one sender
and one exact subject line matches, in practice, only the
conversation you made it from. If you did want the subject as well,
check its box; the text is already there. Everyone else the message was
sent to, on its To and Cc lines, goes in Sent to any of these
addresses, also unchecked. The address of the
account the message is in is left out, since nearly all of that
account’s mail is sent to it. To make a rule for mail sent to one of
those addresses, such as a mailing list or one of your aliases, delete
the addresses you don’t want, check the box, and uncheck From
any of these addresses if the sender shouldn’t matter. Any one
address in the list is enough to match, so trim the list before you
check it. This does not work on a message in a shared mailbox, whose
rules are managed in Outlook; see Shared
mailboxes.
If you have a work or school Microsoft 365 (Exchange) account, the Rules Manager does a little more. Alongside your client-side rules, it shows the server-side rules on your Exchange mailbox — the same rules Outlook calls “Inbox rules.” A server rule runs on Microsoft’s servers, so it acts on your mail even when QuickMail is closed, and it applies wherever you read that mailbox.
Server-side rules are an organization feature, so personal Outlook.com, Hotmail, and Live.com accounts do not have them — even when connected through Microsoft 365 directly. For a personal account the Rules Manager shows only client-side rules, the same as any other non-Exchange account.
One list, marked where each rule runs. For a work or school account, server-side and client-side rules appear together in a single list. Each row says where the rule runs — on server or on client — along with its name and whether it is enabled. Creating, editing, enabling or disabling, and deleting all work the same way whichever kind a rule is; only server-side rules can be reordered. The status line counts them the same way — “4 rules: 3 on server, 1 on client” — so which kinds an account is holding is on screen, and F6 cycles round to read it back. If one kind can’t be loaded, the status line says so and counts only the kind that did.
QuickMail chooses where a new rule lives. When you create a rule, QuickMail saves it as a server rule whenever it can, so it keeps working while QuickMail is closed. A rule that needs something only QuickMail can do — today that is Mark as read, Mark as unread or Play a sound — is saved as a client-side rule instead. On a work or school account, which does also do server rules, QuickMail announces that when it happens; the saved rule’s own row says on client either way, so where it went is there to read whether or not you have announcements turned on.
Mark as read runs in QuickMail, not on the server. Microsoft 365 will accept a server-side rule that marks messages as read, but Outlook Classic (the desktop Outlook for Windows) treats “mark it as read” as something only a client-side rule can do. It cannot show a server-side rule that marks messages as read, and when it saves its own rules it can switch such a rule off, saying that one or more rules could not be uploaded. So QuickMail no longer puts Mark as read in a server-side rule: a new rule that marks messages as read is saved as a client-side rule, which runs while QuickMail is open. Because a client-side rule cannot also Stop processing more rules, Save says so if you choose both.
A server-side rule that already marks messages as read, whether an earlier version of QuickMail made it or you made it in Outlook on the web, is left exactly as it is: QuickMail never removes the step for you. The detail pane says that Outlook Classic may not show the rule. When you edit it, a line under Enabled explains the same, and Save will not store the rule while Mark as read is checked. Clear Mark as read and save, and the rule keeps everything else and should show up in Outlook Classic again. If Outlook Classic switched the rule off, it stays off until you check Enabled as well. If marking as read is all the rule does, clearing it would leave the rule doing nothing, which Save refuses; the line under Enabled says so, and the way to keep the rule’s effect is to delete it and create a new rule that marks messages as read, which QuickMail saves as a client-side rule. If you still want those messages marked as read, add a client-side rule that marks them as read; bear in mind that client-side rules act on mail in the Inbox, so it will not see messages a server-side rule has already moved somewhere else. Turning such a rule on or off, reordering it, and deleting it work as before without changing it.
Some server rules cannot be edited here. A rule you built in Outlook may use conditions or actions QuickMail cannot yet represent exactly. Rather than risk turning it into something you did not intend, QuickMail turns Edit off for that rule, and the detail pane says why. You can still read it, turn it on or off, reorder it, and delete it; change the rule itself in Outlook. A rule the server marks read-only is different: it cannot be changed here at all, so Edit, Delete, Enable or Disable, and Move are all turned off.
Names on addresses. In a server-side rule an address
can carry a person’s name too, the way Outlook shows it. The
From any of these addresses, Sent to any of
these addresses and Forward to boxes show such
an entry as Name <address>, and a name that holds a
comma is in quotes, as in
"Ford, Kelly" <kelly@example.com>, so it stays one
entry. Saving keeps every name, so editing a rule made in Outlook no
longer strips them. You can type an entry the same way; an address typed
on its own is saved with the address as its name, which is how Outlook
stores one. The rules list shows a named entry as the name with the
address after it in parentheses.
Testing. Test works on client-side rules only; for a server rule the Test control is turned off, the same way Edit and Delete are for a read-only rule — a server rule runs in Exchange, so there is nothing local to test it against.
Run on Existing Mail. This applies the selected account’s client-side rules to the mail already in its Inbox — matching the one-account-at-a-time layout, so it never acts on rules for an account you are not looking at. It is available only when that account has at least one enabled client-side rule; a Microsoft 365 account whose rules are all server-side has nothing for it to do (server rules run in Exchange and cannot be applied to existing mail from here), so the control is turned off in that case.
What your organization may need to allow. For most work or school accounts, an administrator has to permit QuickMail to read and change your mailbox rules before this works. If that permission is not in place, you will see a message about it rather than your server rules; ask your administrator to grant QuickMail access.