CIClearInboxSign in

How to organize your email automatically with rules

· Updated · 9 min read · ClearInbox team

Dragging messages into folders by hand is a job you can retire from. Gmail, Outlook and iCloud Mail all let you organize email automatically with rules: small if-this-then-that instructions that run on your mail while you do something else. A dozen good ones deal with the predictable traffic, the notifications, receipts and newsletters, and leave the inbox to mail that needs a person. Here’s what each provider’s tools can do, what to automate first, and where built-in email rules and filters run out.

What is the difference between email rules and filters?

In practice there isn’t one. Gmail calls them filters; Outlook and iCloud Mail call them rules. Each one pairs a condition, such as a sender, a subject phrase or a size, with an action, such as moving, labeling, forwarding or deleting the message. Microsoft puts it plainly: every rule needs a name, a condition and an action.

The differences that matter are where a rule runs and what it can do. Gmail filters, rules made in Outlook on the web and iCloud Mail rules all run on the provider’s side, so they keep working while your laptop is closed. The exception is classic desktop Outlook: Microsoft says a rule with a custom action runs only on the computer where it’s installed, and only while Outlook is open.

Which email rules should I set up first?

Start with mail that arrives on a predictable schedule and rarely needs a reply: app notifications, receipts and order confirmations, newsletters you read later, and monitoring alerts. Those four groups are easy to describe in a condition, and moving them out of the inbox is low-risk. Begin there, then add rules as new patterns show up.

How do I create a filter in Gmail?

On a computer, click Show search options in the Gmail search box, enter your criteria, and click Search to preview what matches. Then click Create filter, choose what should happen, such as applying a label, archiving, starring, forwarding or deleting, and click Create filter again. Filters are managed in Settings under Filters and Blocked Addresses.

The quicker route is to start from a message: tick it, click More, and choose Filter messages like these, which fills in the sender for you. Because a filter is built from a search, the operators that work in the search box, like from:, subject: and has:attachment, work as conditions too. Two details from Google’s help page: a filter that forwards mail only affects new messages, and you can export your Gmail filters as an XML file from the same settings page, a sensible backup before you start editing a long list.

How do I create a rule in Outlook?

In Outlook on the web or the new Outlook, open Settings, go to Mail, then Rules, and select Add new rule. Give it a name, pick a condition and an action from the drop-down lists, and add exceptions if you need them. In the new Outlook you can also right-click a message and choose Rules, then Create rule.

Outlook rules have a Stop processing more rules option, on by default in Outlook on the web, which keeps one message from being handled by two rules. Two limits are worth knowing. Rules in Outlook.com only apply to mail received after you create them, while the new Outlook lets you run a rule on existing messages from the Rules page. And the new Outlook doesn’t support rules for Gmail, Yahoo or iCloud accounts added to it; Microsoft says to set those up with the email provider instead.

Outlook on the web also has Sweep, the closest any built-in tool gets to age-based cleanup. Select a message, choose Sweep, and you can delete everything from that sender, keep only the latest email, or delete email older than 10 days. It works one sender at a time and isn’t available in Junk Email, Drafts, Sent Items or Deleted Items.

Can iCloud Mail run rules automatically?

Yes. On iCloud.com, open Mail, select the Settings button at the top of the Mailboxes list, choose Settings, then Rules, and add a rule with a condition and an action. iCloud Mail rules can move, delete or forward messages or mark them as read, and they can reorganize mail you’ve already received as well as new mail.

On an iPhone with iOS 27 you can manage the same rules in Settings: tap your name, tap iCloud, tap Mail, then iCloud Mail Rules. Apple allows up to 500 rules, applies them in list order, and notes that a new or changed rule can take up to 15 minutes to affect incoming mail. iCloud Mail also has Mail Cleanup, which offers ready-made rules for the Promotions, Updates and Transactions categories with an action, a read status and an age. Our iCloud Mail cleanup guide walks through it.

What can’t built-in email rules do?

Mostly, they can’t act on time. A Gmail filter looks at a message once, when it arrives, so “archive notifications after two days” or “delete promotions older than 30 days” is out of reach. Outlook’s Sweep and iCloud Mail Cleanup cover a few age-based cases for particular senders or categories, and every rule still lives inside one provider.

That last point bites once you have more than one address. A Gmail account, a work Outlook account and an iCloud address means three rule lists in three interfaces, each with its own conditions and quirks. Keep-the-newest is similarly patchy: Sweep offers it for one Outlook sender at a time, and neither Gmail’s nor iCloud’s rule help pages list anything similar.

Built-in email rule tools compared
ToolWhere to set it upWhat it can doActs on age?Worth knowing
Gmail filtersGmail on the web: search options, then Create filterLabel, archive, star, forward, deleteNoForwarding filters affect only new mail; filters export as XML
Outlook rulesSettings, Mail, RulesConditions, actions and exceptions from drop-down listsNoOutlook.com rules affect only mail received after you create them
Outlook SweepSelect a message, then SweepDelete all from a sender, keep the latest, delete older than 10 daysYes, per senderNot available in Junk Email, Drafts, Sent Items or Deleted Items
iCloud Mail rulesiCloud.com Settings, Rules; or iPhone Settings, iCloud, MailMove, delete, forward, mark as readNoUp to 500 rules; changes can take 15 minutes
iCloud Mail CleanupiCloud.com Mailboxes list; or iPhone Settings, iCloud, MailDelete or archive Promotions, Updates or TransactionsYes, by categoryTurning it off deletes your unsubscribed-senders list
ClearInbox Auto CleanClearInbox dashboardMove, archive, delete, label, keep newest N, delete after N daysYesOne rule set across Gmail, Outlook and IMAP accounts

How do I keep automation from deleting something important?

Roll rules out in stages. Run each new rule in move or archive mode for a week, check what it caught, and only then switch it to delete. Prefer archive over delete for anything you might need again, and keep starred or flagged mail out of delete rules. A rule you don’t trust is a rule you’ll end up disabling.

  1. Automate the obvious three first: notifications, newsletters and receipts.
  2. Set each new rule to move or archive, not delete, for its first week.
  3. Check the folder or label the rule fills, or the activity log if your tool has one, for anything that shouldn’t be there.
  4. Switch a rule to delete only after a clean week, and only for mail that has no value later or a copy elsewhere.
  5. Add a rule whenever you catch yourself repeating the same manual action, and prune rules that never fire.

How does ClearInbox handle email automation?

ClearInbox’s Auto Clean rules add the condition built-in filters mostly lack, age, so you can archive notifications after two days or delete promotions after 30. Rules run on a schedule and on newly synced mail, across Gmail, Outlook and IMAP accounts from one dashboard, and every action is written to an activity log.

Conditions cover sender address and name, domain, subject, folder, category, List-Id, label, read status, starred, automated senders, attachments, age and size, with operators from contains and starts with to regex matches and older than. Actions include move, archive, delete, label, mark read, mute, block sender, keep newest N and delete after N days. Rules can apply to one account or all of them and run in priority order. Pinned messages are protected from automation, and deleted mail goes to the provider’s Trash.

The honest trade-off is that it’s one more place where rules live. If two Gmail filters already do the job, you don’t need it. It earns its place when you want age-based cleanup or one rule set across several accounts. It’s free to use today.

Frequently asked questions

What is the difference between rules and filters?

Only the name. Gmail calls them filters; Outlook and iCloud Mail call them rules. All of them match conditions and apply actions automatically.

Can Gmail filters delete emails after 30 days?

No. A filter acts when a message arrives and doesn’t come back later. Age-based cleanup needs a recurring search or a tool with a scheduler, such as ClearInbox’s Auto Clean rules.

Do email rules run when my computer is off?

Gmail filters, rules made in Outlook on the web and iCloud Mail rules run on the provider’s side, so yes. Classic Outlook rules with custom actions run only while Outlook is open on that computer.

Can Outlook rules apply to emails I already have?

In the new Outlook, yes: use the run option next to the rule in Settings, Mail, Rules. Outlook.com rules only apply to mail received after you create them.

How many email rules should I have?

As many as you can review. A dozen covering notifications, newsletters, receipts and alerts handles most predictable mail. Prune any rule that hasn’t fired in months.

Sources and further reading

Keep reading