Email Filters and Rules (2026): Sort Mail Automatically

Looking for an easier way to keep your inbox clean?

Start Your SaneBox Free Trial

What Filters and Rules Do

Filters and rules act on incoming mail automatically. You define a condition, such as a sender or a keyword, and an action, such as applying a label, moving the message or marking it read. Gmail calls them filters, and Outlook calls them rules. Both save time by handling predictable mail so you do not have to.

Good Candidates for Automation

  • Receipts and order confirmations
  • Newsletters you want but do not need immediately
  • Notifications from apps and social accounts
  • Mail from a small group of important people
  • Mail you want to archive on arrival

Gmail Filters

In Gmail, you can create a filter from a message or from the search options. You set criteria such as sender, subject words or size, then choose actions like applying a label, skipping the inbox, marking as read, starring or deleting. Gmail shows a preview of matching messages, which helps you check before saving. Menu positions change, so look for the filter option in search or message settings.

Outlook Rules

Outlook lets you create rules from a message or from the settings for rules. Conditions include sender, recipients and keywords, and actions include moving to a folder, flagging, categorizing and marking as read. You can also run rules on existing mail to tidy a backlog.

Practical Examples

GoalConditionAction
Keep receipts togetherSubject contains receipt or orderLabel or folder, skip inbox
Read newsletters in a batchFrom a specific newsletter senderLabel, skip inbox
Never miss key peopleFrom a short list of addressesStar or flag
Quiet noisy alertsFrom notification addressMark read, archive

Best Practices

  • Start small. Three to five rules cover most needs.
  • Name labels clearly so you can find mail later.
  • Test before you delete. Use labels or archive first.
  • Review periodically, since senders and needs change.
  • Avoid conflicting rules that move the same message in different ways.

When Rules Are Not Enough

Rules only handle patterns you define. New senders and changing habits mean ongoing maintenance. Learning tools take a different approach. SaneBox, for example, watches how you use email and moves unimportant mail to a separate folder without you writing rules, as described in the SaneBox features guide. You can use rules and a tool together if you keep rules simple.

Filters work best with unsubscribing and cleanup. See the declutter plan, and for provider specifics read the Gmail guide and Outlook guide.

How Filters Work Under the Hood

A filter or rule has three parts: a trigger, a condition and an action. The trigger is the arrival of a new message. The condition is what you test, such as the sender, subject, words in the body, size or whether it has an attachment. The action is what happens when the condition is true. Because filters run when mail arrives, they apply to every device you use for that account, provided the filter runs on the mail server rather than inside a single app.

Knowing this helps you design filters that behave predictably. A filter is only as good as its condition, so the more specific the condition, the fewer mistakes.

Choosing Good Conditions

The most reliable conditions are the ones tied to something stable.

  • Sender address or domain: very reliable for newsletters, receipts and notifications. Using a domain catches all addresses from a company.
  • Subject words: useful, but risky if the words are common. Use specific phrases.
  • Words in the message: broad, so use sparingly.
  • Recipient or list address: useful for mailing lists and shared addresses.
  • Attachment or size: good for finding large messages.

Avoid conditions that could match an important message by accident. A filter that moves everything containing the word invoice might hide a real bill from a client.

Choosing Safe Actions

The action decides the risk. Rank them from safest to riskiest.

  1. Apply a label or category. Nothing disappears.
  2. Mark as read. Fine for low-value mail, but check the destination now and then.
  3. Skip the inbox or archive. Mail stays searchable but out of sight.
  4. Move to a folder. Similar to archive, but you need to remember to look.
  5. Delete or send to trash. Use only for mail you are sure you never want.

When you are building a new filter, begin with a label and archive, and only escalate to delete once you have watched it work for a few weeks.

Filter Recipes for Common Problems

Keep Receipts Without the Clutter

Condition: subject contains receipt, order confirmation or invoice, or sender from known stores. Action: apply a Receipts label and archive.

Read Newsletters on Your Schedule

Condition: sender is a newsletter you want. Action: apply a Read Later label and skip the inbox. Then read the label weekly.

Make Sure Important People Stand Out

Condition: sender in a short list. Action: star, flag or categorize.

Silence Automated Notifications

Condition: sender is an alerts address from an app or site. Action: mark as read and archive, or turn off the notification at the source.

Handle Mailing Lists

Condition: list address in the To field or a list header. Action: label and skip the inbox.

Separate Work and Personal

Condition: messages sent to one of several addresses on the same mailbox. Action: label by address.

Testing a Filter Before You Trust It

Whichever app you use, test first.

  1. Run the search with the same conditions and look at the results.
  2. Check for messages that match but should not.
  3. Create the filter with a safe action.
  4. A day or two later, look at what it handled.
  5. Adjust, and only then make it more aggressive.

Maintaining Filters Over Time

Filters decay. Senders change addresses, subscriptions end and your needs shift. A short review every few months keeps them healthy.

  • Delete filters that no longer match anything.
  • Merge duplicates.
  • Check for conflicts, such as two filters that handle the same mail differently.
  • Look in your label folders for messages that you should have seen.

Filters, Folders and the Inbox: Keeping the Balance

It is tempting to filter everything out of the inbox. But a filter that hides too much can make you miss something. Keep your inbox for mail that needs a human decision, filter predictable mail to labels you check on a schedule, and trust search for everything else.

Automatic Alternatives to Manual Filters

If you do not want to write and maintain rules, there are learning tools. SaneBox, for example, watches which messages you open and reply to and moves the rest into its own folders on your mail server, so the sorting appears in any app. It is not a replacement for every filter, and you may still want rules for receipts and labels, but it removes the need to chase every new sender. Read the SaneBox features guide for details, or our SaneLater page to see how its main folder works.

Frequently Asked Questions

What Is the Difference Between a Filter and a Rule?

They are the same idea. Gmail calls them filters, and Outlook calls them rules.

Can Filters Delete Email Automatically?

Yes, but archiving or labeling is safer until you are sure the filter is accurate.

Do Filters Apply to Old Email?

Both Gmail and Outlook can apply a filter or rule to existing mail, depending on the option you choose.

How Many Filters Should I Create?

Start with a few. Too many can conflict and become hard to manage.

Do Filters Work on My Phone?

Filters run on the server, so they apply no matter which device you use. Setting them up is often easier on a computer.

What Should My First Filter Be?

A good first filter is one that labels and archives receipts, because it is low risk and immediately reduces clutter.

Can a Filter Make Me Miss Important Mail?

Yes, if it is too broad or if it hides mail without a label. Use specific conditions, start with labels and review the filtered mail regularly.

Do Filters Run in Order?

In many apps, all matching filters run, and conflicting actions can cause surprises. Keep your set small and test for overlap.

How Do I Find Out Which Filter Moved a Message?

Check the label or folder it ended up in, then review your filter list for rules that apply that label or action. Some apps show the reason in the message details.

Ready to Try SaneBox?

SaneBox works inside the email app you already use, and the free trial lets you see how it sorts your mail before you pay.

Start Your SaneBox Free Trial