How mrl-creator/gmail-cleaner works
Gmail Cleaner is a Google Apps Script that finds expired OTP and verification emails, then logs or trashes matching Gmail threads. The documented principal workflow is a scheduled or manual run, query construction with age and safety exclusions, batched Gmail searches, audit logging, and optional bulk trashing. The supplied source excerpt covers only cleaner.js; other source files and README-described capabilities such as dashboard and multi-account behavior are not evidenced here, so they are omitted rather than inferred.
Main entry points: cleaner.js Cleanup run
Components 6
Email cleanup
- Cleanup run
cleaner.js - Search query
cleaner.js - Batch processing
cleaner.js - Audit logging
cleaner.js
Gmail services
- Gmail
Other components
- Account owner
Connections 7
- Account owner → Cleanup run: starts
README.md - Cleanup run → Search query: builds
cleaner.js - Cleanup run → Batch processing: runs batches
cleaner.js - Batch processing → Gmail: searches
cleaner.js - Batch processing → Gmail: trashes threads
cleaner.js - Cleanup run → Audit logging: logs run
cleaner.js - Search query → Batch processing: filters search
cleaner.js