inboxes.
← Blog How-to August 2026 · 7 min read

How to Automatically Sort Emails Into Folders

Get started

Put every mailbox on one board and let AI categorize and de-spam each message.

To sort emails into folders automatically, create a filter in Gmail or a rule in Outlook that matches something predictable about the message, usually the sender address or a phrase in the subject, and give it an action such as apply a label, move to folder, or skip the inbox. Both take about a minute per rule and run server side, so they work whether or not the app is open. The setup is the easy part. The part worth reading is what happens six months later, when half your mail still lands unsorted because it came from senders you had not met when you wrote the rules.

This walks through both, then covers the three things people run into afterwards: folders against labels, why rules decay, and what to do about mail no rule matches.

How do I automatically sort emails into folders in Gmail?

Gmail calls them filters, and the fastest route in is the search bar. Click the sliders icon at the right of the search box to open the search options panel, fill in what you want to match, then click Create filter at the bottom of that panel.

The conditions you get are From, To, Subject, Has the words, Does not have, Size, Date within, Search in, and Has attachment. In practice you will use From for a specific sender or a whole domain, and Has the words for anything that shows up reliably in the body, like an order number prefix.

Once you click Create filter, Gmail shows the actions. The useful ones:

  • Apply the label creates the equivalent of a folder and tags the message with it.
  • Skip the Inbox (Archive it) is what actually keeps the inbox clean. Without it, the message gets labeled and still sits in front of you.
  • Never send it to Spam is the fix when a client or a vendor keeps getting filtered by mistake.
  • Also apply filter to matching conversations is the checkbox at the bottom, and it retroactively sorts everything already in the mailbox. Most people miss it and then wonder why the rule only affects new mail.

A filter set up this way runs on Google servers, so it applies whether you read mail in the browser, on a phone or in a desktop client connected over IMAP.

How do I automatically sort emails into folders in Outlook?

Outlook calls them rules, and where you find them depends on which Outlook you have, which is currently a real question rather than a pedantic one.

In classic Outlook for Windows, go to the Home tab, click Rules, then Manage Rules and Alerts, then New Rule. You can start from a template such as "Move messages from someone to a folder" or build a blank rule with your own conditions, actions and exceptions. At the end, there is a checkbox to run the rule immediately against messages already in the inbox, which is the equivalent of Gmail's retroactive option.

In new Outlook and Outlook on the web, it moved: open Settings from the gear icon, then Mail, then Rules, then Add new rule. Fewer options than the classic dialog, but the common conditions are all there.

One distinction matters more than any of the settings: some Outlook rules run on the mail server and some run only inside the program on that computer. Anything involving a script, a desktop alert or a local file tends to be client only, and a client only rule does nothing while Outlook is closed. If a rule seems to work at your desk and not on your phone, that is almost always why.

What is the best way to set up email folders?

Keep the number small. Four or five broad folders that you can file into without stopping to think beats a twenty branch tree, because the real cost of a folder system is not building it, it is the decision you make on every message afterwards. A structure that demands thought gets abandoned during the first genuinely busy week, and an abandoned structure is worse than none because you now have mail in two systems.

The pattern that survives is time based rather than topic based: something like Action, Waiting, Reference, and let search handle the rest. Topic folders feel organized and fail at the edges, because plenty of messages honestly belong in two of them and you end up making an arbitrary call, then failing to find the message later because you made the other call last time.

Should I use folders or labels to organize email?

Labels, wherever your provider offers them. A folder holds a message in exactly one place. A Gmail label is a tag, and a message can carry several at once, so an invoice from a client can be filed under both the client and the accounting bucket without you choosing. Outlook has something similar in categories, which work alongside folders rather than replacing them.

This matters more than it sounds, because the single biggest reason people stop filing is the moment of hesitation when a message fits two places. Labels remove that moment entirely.

Why do my email rules stop working?

They rarely break outright. They decay, and it is quiet. A vendor changes the address it sends from. A company rebrands and drops the subject prefix your rule matched. A service you used to get one notification a week from now sends forty a day from a subdomain your filter does not cover.

None of that produces an error. The rule keeps running and keeps matching nothing, and you find out weeks later from a message you needed. This is the structural limit of any rule system: a rule is a bet placed in advance about mail you have not received, and the mail that clogs an inbox is precisely the mail you did not anticipate. New vendors, first messages from new clients, and services you signed up for last month all arrive unhandled by definition.

It is worth asking what is filling the folder that grows fastest, because sometimes the answer is that the mail should not be arriving at all. If it is brand mention alerts stacking up from half a dozen sources, tracking mentions across the web and social in one dashboard is a better home for that than a filter that quietly hides them. If it is receipts, the folder is a symptom of not having anywhere else to put them.

Can I sort emails from multiple accounts into the same folders?

Not with native rules, no, and this is where most setups fall apart. Gmail filters apply to that one Google account. Outlook rules are configured per mailbox. If your mail arrives across a Gmail address, a company domain and an old Yahoo account, you are writing three sets of rules, maintaining three sets, and still checking three places to see the result.

The way around it is to merge before you sort rather than after. Connect every account to one client that shows them as a single list, and sort that list once. Any decent email client for multiple accounts will do the merging part. The sorting part is where they differ sharply, and it is worth checking before you commit, because a merged unsorted list is a bigger pile rather than a smaller one.

How do I sort emails that do not match any rule?

You either write another rule, which puts you back on the treadmill, or you use something that categorizes without being told what to look for. That is the actual difference between a filter engine and an email organizer built on a model: a filter matches a string you supplied, while a model reads the message and decides what it is. A first email from a supplier you have never dealt with gets recognized as work on the day it arrives, with nothing configured in advance.

The trade is honest and worth stating. A rule is right every single time, because it only does what you specified. A model makes a judgment call, and occasionally it is the wrong one. What you get for that is coverage of the mail you never predicted, which in most inboxes is the majority of it.

In Inboxes this runs across every mailbox at once. Each message gets a category of Important, Newsletter, Notification, Spam, or Other plus a spam verdict as it arrives, and archive and junk decisions push back over IMAP, so your phone and the provider webmail show the same state rather than drifting apart.

A setup that holds up

If you are starting over, do it in this order. Clear the backlog first by sorting the mailbox by sender and acting on the biggest groups in bulk, because trying to design a system on top of 40,000 unread messages is how people give up. Then write rules for the handful of senders that are genuinely predictable and high volume, which is usually fewer than ten. Then stop, and let something else handle the rest rather than trying to anticipate it.

The mistake is not writing too few rules. It is treating the rule list as the system, and then spending a weekend every year rebuilding it. If you want the longer version of the multi account side of this, we cover the mechanics in how to manage multiple email accounts, and the tool comparison sits on the email organizer page.

Get started