Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Email rules & search lab

Practise email rules and search on a made-up inbox: write rules in plain words, see where every message lands, and build search queries in two styles.

How to use

  1. Rules: write one rule per line as if conditions then actions. Join conditions with and and actions with commas, and end with ; stop to stop later rules for that message. Press Run the rules to see what happens to each of the 24 sample messages.
  2. Conditions: from / to / cc / subject / body contains text, has attachment, larger than number KB or MB, sent only to me. Actions: move to folder, flag, mark read, delete.
  3. Search query builder: fill in only the boxes you need. The tab writes the query in two common styles and lists the sample messages it finds. Copy the one that suits your mail program.
  4. Sample inbox: the made-up messages the rules and searches work on.

Keyboard and touch

TabMove between tabs, boxes and buttons
EnterBuild the query (in a search box)

Tips

  • Order matters. Put narrow, important rules (invoices, your manager) above broad ones (newsletters), or use stop so a message is handled once.
  • In the example, the supplier's overdue reminder for invoice 4471 lands in Invoices, flagged; try moving the "sent only to me" rule to the top and run again.
  • Mark read hides messages you may need. Use it only for notices you never act on.
  • In web mail style, a minus means "not" and quotes keep a phrase together; desktop style uses NOT and joins terms with AND.

About this tool

This is a practice lab, not a mail program. The 24 messages are made up and use example.com-style addresses. The rules are run by this page from the top; every action of every matching rule is applied (the last move wins) until a rule with stop. Real mail programs have more conditions and actions, and some run rules on the server.

The queries follow widely documented search operators (checked November 2026). Web mail style: from:, to:, subject:, quotes, a minus for not, has:attachment, after:/before: with YYYY/MM/DD and larger: with M for megabytes. Desktop mail style: from:, to:, subject:, NOT, AND, hasattachments:yes, received: with dates written as M/D/YYYY in US settings, and messagesize:. Exact support differs between programs and versions. Here "after" includes the date and "before" excludes it. Not affiliated with Google, Microsoft or any other mail provider.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product