GuideUpdated November 11, 2026

Sort Outlook email automatically: rules, Sweep, Focused Inbox, AI

Outlook sorts email automatically with inbox rules. You set a condition and an action, such as "mail from news@shop.example goes to the Newsletters folder", and Outlook applies it to every new message. Two more tools sit next to rules: Sweep handles all mail from a single sender, and Focused Inbox separates mail you care about from bulk mail without any rules at all. An AI agent only earns its place once your criteria stop fitting into a fixed condition.

This guide covers the built-in tools first, across all four versions of Outlook, then sorting by sender, Microsoft's Copilot, troubleshooting, and finally the agent options. One of those is Command Mail, which we build. Command Mail sorts copies of your mail and leaves the Outlook mailbox itself untouched. If you want the original mailbox in order, Outlook's own rules are the tool for that.

Updated: Published: Fact-checked: About 18 min readAs Markdown

Contents
  1. What you end up with
  2. Before you start
  3. Which Outlook tool does what?
  4. Step by step: a rule in new Outlook and Outlook.com
  5. In classic Outlook and Outlook on the web
  6. Rule order and "Stop processing more rules"
  7. Sort Outlook by sender, date or size
  8. Sweep, Archive and Move to
  9. Focused Inbox
  10. Outlook's own AI: Copilot
  11. Check that it works
  12. Troubleshooting
  13. When an AI agent does more
  14. Connect Command Mail to your agent
  15. What changed on this page
  16. Next steps
  17. Sources and date
  18. Frequently asked questions
  19. Sources

01What you end up with

Recurring mail such as newsletters, shipping notices and app notifications lands in its own folders, or gets a color category, without you touching it. Your inbox mostly shows mail from people you actually correspond with. You know which rule moves which message, and you can switch each one off on its own.

02Before you start

You need an Outlook account and you need to know which Outlook you're using. Microsoft's help distinguishes four: new Outlook for Windows, classic Outlook, Outlook on the web for work and school accounts, and Outlook.com for personal accounts such as @outlook.com or @hotmail.com.[1] If you see File at the top of the window, Microsoft says you're on classic Outlook.[12] The menus differ, but the logic is the same everywhere.

According to Microsoft, every rule needs at least three things: a name, a condition and an action. Exceptions are optional.[1] Create the destination folders first, or create them while you set up the rule.

03Which Outlook tool does what?

ToolWhat it doesGood forLimit
Inbox ruleRuns a fixed action whenever the condition matchesKnown senders, subject words, mailing listsExact conditions only, acts on new mail by default
SweepDeletes or moves mail from one selected sender, once or going forward; documented for the web and Outlook.com, and shown in new Outlook in the Outlook.com quick guideSingle noisy senders, backlogOne sender at a time, Sweep rules run once per day
Focused InboxSplits into Focused and Other, learns from how you treat mailSeparating bulk mail from what mattersNo folders, just two tabs
Sorting via FilterRearranges the list by sender, date, size and moreFinding one sender or large messages fastMoves nothing
Copilot in OutlookCreates rules from a description, ranks new mail by priorityRules without menus, seeing important mail firstLicense, language and rollout differ by feature
AI agentJudges content and proposes groups or rulesFuzzy criteria, mixed sendersNeeds access and clear permissions

04Step by step: a rule in new Outlook and Outlook.com

New Outlook for Windows and Outlook.com are laid out almost the same way.[1]

  1. In the message list, right-click a message from the sender you want to sort.
  2. In new Outlook, hover over Rules and select Create rule; in Outlook.com, select Rule, then Create rule.
  3. Choose the destination folder and select OK. New mail from that sender goes there from now on.
  4. For more conditions, select More options instead of OK. Use Add a condition, Add an action and Add an exception, for example "subject includes invoice" as an exception.
  5. Tick Stop processing more rules if you need it, then select Save.

To build a rule from scratch without a sample message, go to Settings → Mail → Rules → Add new rule. That's also where you change the order with the arrows and switch a rule off for a while with the toggle next to its name.[1]

A rule can also set a color category instead of moving mail. Microsoft's feature comparison lists "Categorize" as available in classic and new Outlook, and "Assign to specific category" as only partially available in new Outlook.[12] The mail stays in the inbox and is still marked at a glance.

In new Outlook you can also run a rule on existing messages under Settings → Mail → Rules. For Outlook.com, Microsoft's help pages disagree. The rules article says you currently can't run inbox rules on existing messages in the Outlook.com beta and points to Archive, Move to and Sweep for the backlog.[1] The "Organize your inbox" quick guide for Outlook.com, by contrast, names a Run this rule now in Inbox check box when you create a rule.[11] If you see that check box, use it; otherwise the new rule only applies to mail that arrives afterwards.

05In classic Outlook and Outlook on the web

In classic Outlook, right-click a message and select Rules → Create Rule. Pick a condition such as Subject contains and the action Move the item to folder. Ticking Run this new rule now on messages already in the current folder sorts the existing mail as well.[1] Templates and the full list of rules live under File → Manage Rules & Alerts, where Run Rules Now applies rules to a folder later, optionally including its subfolders.[1]

Some rules in classic Outlook only run while Outlook is open on your computer, and Outlook warns you when that's the case.[1] These are client-side rules. Microsoft's examples include playing a sound, printing and permanently deleting. Only classic Outlook supports both client-side and server-side rules; new Outlook, Outlook on the web and Outlook.com support server-side rules only.[12]

In Outlook on the web, open Settings → Mail → Rules → Add new rule. There, Microsoft says, Stop processing more rules is turned on by default, so when a message matches several rules only the first one applies.[1]

06Rule order and "Stop processing more rules"

Outlook checks rules from top to bottom. Stop processing more rules ends that check after the first matching rule.[3] That prevents conflicts. Microsoft's example: one rule moves mail with the subject "Wedding plans" to a folder, a later one deletes everything with an attachment. Without the stop, a wedding email with an attachment would be deleted.

So put narrow rules for important mail at the top and broad ones such as "everything from this domain to Archive" at the bottom. A rule that deletes belongs at the end and should have an exception.

07Sort Outlook by sender, date or size

In new Outlook, Outlook on the web and Outlook.com, you sort the message list with Filter at the top of the message pane. Microsoft lists date, category, sender, size, importance and subject among the options.[9] In classic Outlook, use the Filter dropdown on the message list. This only changes the view: mail from one sender sits together but stays in the same folder.

It's a good first look at "who sends me the most?". Sort by sender, scroll through the list and note the three senders with the longest runs. Then create a rule for each, or use Sweep.

08Sweep, Archive and Move to

Sweep handles all mail from one sender in one go. According to Microsoft, in Outlook on the web it can automatically delete all incoming mail from a sender, keep only the latest message, or delete mail older than 10 days.[10] Microsoft's quick guide for Outlook.com shows Sweep on the web and in new Outlook, and also describes moving all of a sender's mail to a specific folder, once or for all future messages.[11]

  1. Select a message from the sender.
  2. Select Sweep on the ribbon.
  3. Choose what should happen to that sender's mail and confirm.

Microsoft names two limits explicitly. Sweep rules run once per day, while inbox rules run as soon as mail arrives. Sweep isn't available in Junk Email, Drafts, Sent Items and Deleted Items.[10] For a single sender, Sweep is a direct option; for conditions such as subject words or exceptions you need a rule.

Archive moves a message to your Archive folder, where it stays searchable, and Move to puts it in any folder you choose.[10][11] Both act immediately and only on the messages you selected.

09Focused Inbox

Focused Inbox splits your inbox into a Focused and an Other tab. Microsoft says it takes into account the mail and contacts you interact with and filters out automatically generated and bulk mail.[2] In new Outlook, go to View → View Settings → Mail → Message List, pick the account, tick or clear "Sort messages into Focused and Other" and select Save. In Outlook on the web and Outlook.com the same check box sits under Settings → Mail → Message List in the Focused Inbox section, again followed by Save; in classic Outlook, use Show Focused Inbox on the View tab.[2]

If it files a sender wrongly, right-click one of their messages. In new Outlook, Outlook on the web and Outlook.com, choose Move and the destination; in classic Outlook, choose Move to Other or Move to Focused directly. The matching "Always move" option sends all future mail from that sender to the chosen tab.[2] Rules and Focused Inbox complement each other: Focused Inbox splits roughly, rules file into folders.

If the two tabs are missing, Microsoft names three possible reasons. In Outlook for Windows, Focused Inbox is only available for Microsoft 365, Exchange and Outlook.com accounts. It doesn't work in a shared mailbox. And some mailboxes still have a Clutter folder instead, which Focused Inbox replaces.[2]

10Outlook's own AI: Copilot

Microsoft Copilot can turn a description into an Outlook rule, such as "Move emails with 'Invoice' in the subject to the Invoices folder". Microsoft says that before making any change, Copilot shows a summary with the condition, the action and a note that the rule applies to future email only, and asks you to confirm. If the folder or category doesn't exist yet, Copilot creates it together with the rule after a single confirmation. Copilot lists existing rules without asking for confirmation; changing, disabling or deleting them requires your confirmation.[14] The result is a standard inbox rule that doesn't go back over existing mail. The help page doesn't say which license the rules feature needs.

Copilot has two more relevant features. In Copilot chat you can, among other actions, pin, flag, archive, delete, move and copy mail, mark it as junk and set categories; when a command affects more than five emails, Copilot shows a confirmation card. Microsoft says this triage currently works in English only.[16] Prioritize my inbox in Outlook for Microsoft 365 rates inbox mail that arrives after you turn it on as high, normal or low priority and explains why. On desktop you can filter or sort by priority; on mobile, Microsoft describes filtering only. It doesn't rate older mail, nor mail delivered to folders other than the inbox, mail the sender marked as low importance, out-of-office mail, meeting mail, mail you send only to yourself, mail with very little content, non-delivery and quarantine messages, or encrypted mail whose content can't be read. Microsoft is rolling it out gradually, and the Copilot FAQ says it currently supports Tier 1 languages only.[15][17] The Prioritize help page doesn't describe moving mail into folders; it describes the priority marker, a short summary and the reasoning.

11Check that it works

Send yourself a test message that meets a rule, for example with the subject word from your condition. It should appear in the destination folder, not the inbox. The rule list is under Settings → Mail → Rules in new Outlook, Outlook on the web and Outlook.com, and under File → Manage Rules & Alerts in classic Outlook. Then check in the list that the rule is switched on and sits in the right position. For a few days, open the destination folders and the Other tab daily to catch misfires early.

12Troubleshooting

The rule ignores old mail. Rules act on new mail by default. New and classic Outlook can run them on existing messages; for Outlook.com, see the section above.[1][11]

New Outlook offers no rules for your Gmail account. New Outlook currently doesn't support rules for third-party accounts such as Gmail, Yahoo and iCloud. Create the filter with that provider.[1]

A rule shows "This rule can't be edited or viewed". Microsoft names one possible reason: it's a client-side rule from classic Outlook that new Outlook, Outlook on the web and Outlook.com can't process. Create it again there. If the condition or action you used before is missing, it isn't currently supported in that version.[12]

A rule in classic Outlook is highlighted in red. Classic Outlook labels broken rules with "Error". Open File → Manage Rules & Alerts, select the rule marked with the error and fix it through the links under the rule description.[12]

A second rule never runs. A rule higher up has Stop processing more rules ticked. Change the order or clear the check box.[3]

A forwarding rule on a work account fails with 5.7.520. Microsoft 365 can block automatic forwarding to outside addresses by organization policy, and this code points to such a block. Your IT team owns that setting; don't work around it.[6]

A forwarding rule in Microsoft 365 reaches some or none of its recipients. For Exchange Online, Microsoft Learn lists, among other things: at most 10 individual recipients per forward or redirect rule, no forwarding back to the original sender, and no second automatic forward of a message another inbox rule already forwarded. Such rules don't forward automatic replies.[13]

No inbox rule works in an Exchange Online mailbox. Microsoft Learn names two causes where that's by design: the mailbox is designated as a journaling mailbox (JournalingReportNdrTo), or it has a Microsoft 365 F1 license. Your IT team can check both.[13]

13When an AI agent does more

Rules break down on criteria such as "anything that looks like marketing but isn't from my clients" or "invoices into one folder, whoever sends them". An agent can read the content and group mail by type. Besides Copilot, there are two quite different ways to do that.

Claude working directly in the Microsoft 365 mailbox. For work or school accounts with an Entra tenant, Claude's Microsoft 365 connector can use write tools to organize mail and manage categories, inbox rules and automatic replies. Those write tools need a Microsoft Entra administrator's consent to the updated permissions and approval by your organization.[4] Anthropic's security guide lists one tool that creates an inbox rule and one that deletes it, both using the MailboxSettings.ReadWrite permission. The tool list also covers setting categories and moving conversations to Deleted Items, but no tool that moves a message to an arbitrary folder.[5] So for automatically filing future mail into folders on work and school accounts, the tool list documents creating an Outlook rule that then keeps running without Claude. On Claude Free, Pro, Max and Ultra the connector also links personal accounts such as Outlook.com or Hotmail, with no admin needed; there Claude can draft, send and organize mail, manage categories and move mail to Deleted Items, but Anthropic says inbox rules and automatic replies aren't included. On personal accounts Claude asks in chat before write actions by default; you can change that per tool under Tool permissions.[4][5] Setup is in Connect Outlook to Claude.

Command Mail as a separate inbox. Command Mail receives your Outlook mail as copies through forwarding, alongside addresses from other providers. Nothing you do there flows back to the Outlook mailbox.[7] An agent such as Claude, ChatGPT or Codex sorts there over MCP.[8]

According to the app code, a Command Mail rule targets exactly one sender address or one sender domain including its subdomains, optionally narrowed by a type of email, subject words or a mailbox. Its action is spam, archive, a folder or trash. Command Mail rejects a domain rule at creation if it explicitly names a protected type and sends it to Spam or Trash; domain rules with these two actions only match routine mail. A rule that names no type only matches routine mail such as newsletters, promotions, confirmations and notifications. Domains that many unrelated people send from, such as gmail.com, outlook.com or hotmail.com, can't be a rule target; there you set a rule for one exact address.

The app code protects mail that Command Mail recognizes as a security notice, payment problem, invoice, deadline, appointment, request for action or personal message, plus cases such as threads you've replied in. When a spam or trash rule matches such an email, the match becomes a suggestion for you to decide. Archive and folder rules may only file the protected type they explicitly name, for example a rule that files one shop's invoices into a Finance folder. For such a rule, neither that type nor the safe-sender protection (safe_sender) blocks filing; if other protections remain, such as an additional deadline or a thread you've replied in, the match still becomes a suggestion. For disguised phishing identified with certainty, the code removes the security, payment-problem, invoice, deadline and action-request protections; other protections may remain, and mere suspicion of phishing removes no protection. This protection applies to rule decisions and the classifier's spam decision. It is not a general block on direct agent actions on Limited filing.

How much the agent may do on its own is set per mailbox under Automation & rules, with four levels: Read only, Suggest, Confirmed rules and Limited filing.[7] On Suggest, an agent's archiving, moves to Spam or Trash, category changes and filing into folders become suggestions; newly created agent rules are also saved as suggestions. Your own rules, such as those from spam clicks, already apply on that level, and if you switch on a rule the agent proposed, it counts as yours. On Confirmed rules, enabled rules act on new mail automatically, including the agent's rules; the app code also allows the agent to activate rules there. The direct filing and category changes listed above remain suggestions. Only Limited filing lets the agent archive or mark spam directly, journaled, undoable and at most 50 conversations per step.[7] Per the app code, the agent changes labels, read status and stars immediately on any level above Read only. A new mailbox starts on Suggest, or on Read only if the Catch-all row is set to Read only; mailboxes connected earlier keep their level. So check each mailbox before the agent's first run.

The free plan covers one mailbox with the last 90 days, reading, search, sorting, the morning brief and drafts, without sending; further mailboxes pause and keep receiving.[8] Clean up your inbox with AI walks through a careful first run.

On work accounts, forwarding can fail because the organization blocks external forwarding.[6] In that case Outlook's rules, Copilot or the Claude connector are the better fit. Command Mail fits when you want personal Outlook.com addresses merged with addresses from other providers and an agent working there under fixed permissions. Forwarding setup is in Outlook forwarding.

14Connect Command Mail to your agent

Your agent connects to the hosted MCP server at https://commandmail.app/mcp and signs in with OAuth. ChatGPT has an official plugin in its plugin directory, though installing and using plugins depends on plan, workspace, role and region; Claude lists Command Mail as a community connector in its directory, and Claude Code connects with claude mcp add --transport http commandmail https://commandmail.app/mcp.[8]

You pick the permissions on the consent page. Reading, search and organizing actions such as archiving, spam, categories and folder filing need only mail:read, within each mailbox's level, but that permission applies to every mailbox in your account. Moving mail to Trash directly additionally requires mail:send according to the permissions reference.[8] Per the app code, an agent can instead create a rule with the Trash action with mail:read alone. Drafts need mail:draft; sending on its own needs the separate mail:send permission and a mailbox on Limited filing.[7] Per the app code, only a person signed in through the browser can approve drafts or change a mailbox's level. An agent can switch on its own rules only in mailboxes on Confirmed rules or Limited filing; elsewhere its rule stays a suggestion.

15What changed on this page

Revised on 2026-11-11. New: sections on sorting by sender, date and size, on Sweep, Archive and Move to, and on Copilot (rules, triage, Prioritize my inbox), plus color categories via rules, fixes for missing Focused Inbox tabs, rules that can't be edited or show an error, forwarding rules and mailboxes where no rule works, and the section on connecting your agent.[9][10][11][12][13][14][15][16] We added the path to Focused Inbox in new Outlook from Microsoft's current help.

We corrected several statements. For Outlook.com we said Microsoft doesn't let you run rules on existing mail; Microsoft's rules article says so for the beta, while its quick guide names a check box for it. We removed the unsupported recommendation that the Claude connector was "usually" the better fit when forwarding is blocked. The earlier statement that on Suggest every organizing action by the agent waits for confirmation doesn't hold for labels, read status and stars, per the app code. We now also describe Claude's tool list more precisely: it names no tool for moving mail directly to an arbitrary folder. The November 5 correction still stands: the connector supports personal Microsoft accounts, but without inbox rules and automatic replies. We also made the Command Mail protection statement more precise. The earlier version said no rule sends mail recognized as an invoice, deadline or security notice to spam or trash. Per the app code, such a match becomes a suggestion; archive and folder rules that name a type lift that type and safe_sender, the code removes five protections for disguised phishing identified with certainty, and the protection applies to rules and the spam decision, not to direct agent actions on Limited filing. For enabling rules, this guide follows the app code: on Confirmed rules and Limited filing, agents may activate rules themselves. The retrieved public documentation still describes this differently. Autonomy statements now cite the documentation instead of llms.txt, and rule statements are checked directly against the app code instead of the agent organizing guide. New as well: moving mail to Trash directly also needs mail:send, and domain rules that send a protected type to Spam or Trash are rejected.

16Next steps

Start with three rules for the senders that annoy you every day and switch on Focused Inbox. A week later you'll see what still slips through. Only then is an agent worth adding, with the narrowest permission the job needs. If you juggle several addresses, read All your email addresses in one inbox. For Gmail there's a matching guide: Sort Gmail automatically. For automatic invoice filing and forwarding to accounting software, see Automatically file invoices from email.

Start Command Mail for free, forward your Outlook address and connect your agent so it can suggest your first rules.

17Sources and date

Last checked: 2026-11-11. The Microsoft and Anthropic help pages and Command Mail's public pages were retrieved that day, the help pages as raw HTML with the article text extracted. Statements about Command Mail rules, protected types, labels and starting levels also rest on the app code at commit 60c8c3d (mail-rules.ts, classify-policy.ts, mail-signals.ts, mail-activity.ts, mcp.ts, intake.ts, domains.ts, interface strings in messages/en.json). This guide doesn't include our own test of Outlook's menus or of Copilot.

Frequently asked questions

How do I make Outlook move emails to a folder automatically?

Create an inbox rule. Right-click a message from the sender; in new Outlook choose Rules → Create rule, in Outlook.com choose Rule → Create rule, then pick the folder and select OK. New mail from that sender goes there from then on. For more conditions, open Settings, Mail, Rules.

Can I sort Outlook by sender?

Yes, the view. In new Outlook, Outlook on the web and Outlook.com, select Filter at the top of the message pane and pick a sort order such as sender, date, size, category, importance or subject; in classic Outlook use the Filter dropdown. That only rearranges the list. To move mail into folders, use rules or Sweep.

Why doesn't my new rule touch the mail already in my inbox?

Rules act on incoming mail. New Outlook can run a rule on existing messages from the rules settings, and classic Outlook has Run Rules Now. For Outlook.com, Microsoft's help pages disagree: the rules article says you currently can't in the Outlook.com beta, while the quick guide names a 'Run this rule now in Inbox' check box. If you don't see it, use Archive, Move to or Sweep for the backlog.

What's the difference between Sweep and rules?

Sweep handles mail from one selected sender. For Outlook on the web, Microsoft describes three options: delete all incoming mail from that sender, keep only the latest or delete mail older than 10 days. The Outlook.com quick guide also shows one-time or ongoing moves to a folder on the web and in new Outlook. Microsoft says Sweep rules run once per day, while inbox rules run as soon as mail arrives. Rules can also combine several conditions, actions and exceptions.

Do Outlook rules work for a Gmail account added to Outlook?

Not in new Outlook for Windows. Microsoft says new Outlook currently doesn't support rules for third-party accounts such as Gmail, Yahoo and iCloud. Set up the filter with that provider instead.

Can an AI agent create Outlook rules for me?

Yes, in two documented ways. Microsoft Copilot turns a description into an inbox rule and asks you to confirm first; its help page doesn't say which license the rules feature needs. Claude's Microsoft 365 connector has tools to create and delete inbox rules on work or school accounts once the organization has enabled write tools. On personal Outlook.com accounts, Anthropic says inbox rules aren't part of the connector.

Sources

  1. Microsoft: Manage email messages by using rules in Outlook support.microsoft.com, accessed
  2. Microsoft: Focused Inbox for Outlook support.microsoft.com, accessed
  3. Microsoft: Stop processing more rules in Outlook support.microsoft.com, accessed
  4. Anthropic: Connect to Microsoft 365 support.claude.com, accessed
  5. Anthropic: Microsoft 365 connector security guide support.claude.com, accessed
  6. Microsoft Learn: Control external email forwarding learn.microsoft.com, accessed
  7. Command Mail: Documentation (permissions and autonomy) commandmail.app, accessed
  8. Command Mail: plans and agent options commandmail.app, accessed
  9. Microsoft: Sort email messages in Outlook support.microsoft.com, accessed
  10. Microsoft: Organize your inbox with Archive, Sweep, and other tools in Outlook on the web support.microsoft.com, accessed
  11. Microsoft: Organize your inbox (Outlook.com) support.microsoft.com, accessed
  12. Microsoft: Edit or fix a broken rule in Outlook support.microsoft.com, accessed
  13. Microsoft Learn: Diagnose Outlook Inbox rules that aren't working learn.microsoft.com, accessed
  14. Microsoft: Create, view, update, and delete Outlook rules with Microsoft Copilot support.microsoft.com, accessed
  15. Microsoft: Prioritize my inbox support.microsoft.com, accessed
  16. Microsoft: Triage email with Microsoft Copilot in Outlook support.microsoft.com, accessed
  17. Microsoft: Frequently asked questions about Copilot in Outlook support.microsoft.com, accessed
EN