A Google Apps Script that automatically cleans up your Gmail inbox. It discovers who’s flooding your inbox, lets you block them by domain, bulk-trashes junk, purges old promotions, and runs daily on autopilot.

Features

  • Discover — Scans Promotions, Updates, Social, and Spam. Ranks senders by volume.
  • Block — Add unwanted domains to a block list. Stored in your Google account, not in the code.
  • Clean — Bulk-trashes emails from blocked domains. Never touches Primary inbox.
  • Automate — Daily trigger at 3am. Auto-continues via triggers if it hits execution limits.
  • Safe — Everything goes to Trash (recoverable 30 days). Primary inbox is explicitly excluded.

Tech

  • Google Apps Script (ES5, zero dependencies)
  • Jest test suite with 56 tests and mocked Google APIs
  • GitHub Actions CI
  • Auto-continuation triggers for long-running operations

View on GitHub →