| name | email-processor |
| description | Automate Gmail inbox processing - categorizes unread emails, marks marketing/newsletters/promotions as read, and surfaces important emails requiring attention.
USE WHEN: User asks to "check my emails", "process unread emails", "clean up my inbox", "mark newsletters as read", or any Gmail automation task.
REQUIRES: gog CLI (brew install steipete/tap/gogcli) + Google Cloud OAuth credentials
|
Email Processor
Automates Gmail inbox triage by categorizing unread emails and marking low-priority items as read.
What It Does
- Fetches all unread emails
- Identifies marketing, newsletters, promotions, and news
- Marks low-priority emails as read
- Surfaces important emails (GitHub, security alerts, direct communications)
- Generates a summary report
Prerequisites
1. Install gog CLI
brew install steipete/tap/gogcli
Verify installation:
gog --version
2. Google Cloud OAuth Setup
- Go to Google Cloud Console
- Create a new project (or use existing)
- Enable the Gmail API:
- Navigate to "APIs & Services" > "Library"
- Search for "Gmail API" and enable it
- Create OAuth credentials:
- Go to "APIs & Services" > "Credentials"
- Click "Create Credentials" > "OAuth client ID"
- Select "Desktop app" as application type
- Download the JSON file
3. Authenticate gog
gog auth credentials /path/to/client_secret.json
gog auth add your@gmail.com --services gmail
gog auth list