Skip to content
Briskmail
Get early access

Briskmail Writing

What it takes to get a Gmail client past Google's restricted-scope review

I build Briskmail, a native Mac app for Gmail, on my own. The Mac side was the part I expected to be hard. The part that actually set the schedule was Google: what an app has to go through before it is allowed to read someone's Gmail, and what that does to a one-person business. This is what that looked like, with the real numbers.

Why the Gmail API and not IMAP

Most Mac mail apps speak IMAP, and Gmail supports it. I went with the Gmail API instead, because it lets the app behave like Gmail rather than like a generic mailbox. Labels are labels, not folders pretending. A conversation is the same conversation you see on the web. Archive, snooze and Send Later mean what they mean in Gmail.

The price is that you are now a Google API client asking for restricted scopes, and restricted scopes come with a process.

The 100-user cap

Until Google verifies an app that uses restricted Gmail scopes, two things are true. Everyone who signs in sees a warning that the app is unverified, and the app is capped at 100 users, ever, across the life of the project.

That cap shaped the whole launch. I could not run a public free trial, because every trial sign-in uses up one of the 100 places for good. Instead the app is sold with a refund window, and I watch the user count in the Cloud console the way other people watch revenue.

The verification video

Verification starts with a written justification for each scope and a demo video. My first video was rejected. Google's reply said it did not show why the app needed two of the scopes it asked for, gmail.modify and gmail.settings.basic, or why narrower ones would not do. Their standard is least privilege: every scope has to be shown being used, and every write has to be shown arriving in the user's real Google account.

I re-recorded it scope by scope, showing each action in the app and then the same change in Gmail on the web, and resubmitted the next day. If you are about to do this, record it that way the first time.

CASA: the security assessment

Restricted scopes also require a CASA security assessment from a lab Google authorizes, and it renews every year. For a desktop app at the entry level, the lab I used works through a checklist of 31 checks for a macOS app: how data is stored, what the binary exposes, how links are opened, how secrets are handled, how it is signed. The plan I bought cost $880.65 for the year.

Running the checklist against my own app was worth more than I expected. It found real things I fixed:

  • Links in some message cards opened without being checked first. They are checked now.
  • Some error messages included local file paths. They don't any more.
  • The licence key field showed the key in clear text. It is masked now.
  • The shipped app still carried debug symbols and build paths. They are stripped.

On the latest build it measures 30 of 31. The last item is a question rather than a bug: the app keeps the signed-in user's own email address in a file only that user can read, and WebKit keeps a disk cache of remote images. Whether that counts as sensitive data is up to the lab, and I am waiting on their answer.

The business problem

Briskmail is a one-time purchase, $39 for the first 500 buyers and $59 after that. I chose that because a lot of people are tired of subscribing to their mail client.

The assessment is a yearly bill. At $39 a sale, I need around two dozen sales a year just to keep the right to read Gmail at all, before anything else. So far nine people have paid. I still think pay-once is right for this app, but it only works if sales keep coming every year, not just at launch.

What I would tell someone starting

  1. Decide between IMAP and the Gmail API on day one. The API is better for users and much heavier for you.
  2. Plan your launch around the 100-user cap. No open trial until you are verified.
  3. Record the verification video scope by scope, showing every write in the real Gmail.
  4. Run the assessment checklist yourself before you pay a lab. It is a good security review in its own right.
  5. Put the yearly assessment in your pricing from the start.

Briskmail is at briskmail.app. It is Mac only, macOS 14 or later. I'm happy to answer questions about the Gmail API, the review, or building a text-heavy app in AppKit.

Briskmail

A native Mac app for Gmail.

Explore Briskmail