Plain-English email rules for Gmail

Sort Gmail with rules you write in plain English. Connect over IMAP with a Google app password, free on every plan, and see the result in every app.

Gmail settings
IMAP server
imap.gmail.com
Port
993
Security
SSL/TLS
App password
Required

Rules that run while your laptop is shut

MailRules acts on the Gmail mailbox itself, not inside one app. Mail that arrives overnight is filed by morning, and your phone sees it the same way.

Written in words, not filter conditions

Gmail filters match words and addresses. MailRules takes a sentence like “recruiters go to Jobs unless I’ve replied before”. Rules that can be decided by sender or domain alone never reach a model at all.

An app password, not your Google password

The app password lets MailRules reach your mail without knowing your Google password. Remove it at any time and MailRules loses access.

01

Create an app password

  1. Turn on 2-Step Verification for your Google Account. Google requires it before you can create app passwords.
  2. Open myaccount.google.com/apppasswords and sign in if Google asks.
  3. Name the app password MailRules and create it.
  4. Copy the password Google shows into MailRules.

Open myaccount.google.com

02

Connect it in MailRules

  1. In MailRules, open the connect wizard and add a mailbox with server imap.gmail.com, port 993 and SSL/TLS.
  2. Enter your full Gmail address and paste the app password.
  3. MailRules tests the connection and lists the folders it found.
  4. Pick starter rules or write your own in plain English, check the preview, then go live.
  5. New installs start in dry-run: MailRules shows what it would do and changes nothing until you switch it live.

Good to know about Gmail

  • Gmail with an app password works on every plan, self-hosted and cloud.
  • IMAP is always on for personal Gmail accounts. There is no setting to switch on first.
  • If you don't see the app password option, Google lists three reasons: 2-Step Verification is set up only with security keys, the account belongs to a work, school or other organisation, or the account uses Advanced Protection.
  • Changing your Google Account password revokes every app password. MailRules then shows the mailbox as sign-in failed; create a new app password to reconnect.
  • Google allows up to 15 email apps on one account at the same time. MailRules counts as one.

Questions

Do I need to give MailRules my Google password?

No. You give it an app password that you can remove on its own at myaccount.google.com/apppasswords, without changing your Google password.

Is there a one-click Sign in with Google option?

For a personal Gmail account, no: it connects with an app password on every plan. One-click Google sign-in on the cloud plans is for Google Workspace organisations whose admin trusts MailRules.

My Gmail is a work or school account. What now?

That is a Google Workspace account, and your admin decides whether app passwords are allowed. See the Google Workspace guide.

Will the Gmail app on my phone see the sorting?

Yes. MailRules moves mail on Google's server, so the Gmail app, Gmail on the web and any other app show the same result.

Tell your inbox what to do. Then stop thinking about it.