What problem does it solve?
This skill replaces manual Gmail searching with a programmable workflow to search, fetch, and download emails via the Gmail API.
Core Features & Use Cases
- Free-text search using Gmail query syntax with support for filters (from, to, subject, label, after/before dates)
- Retrieve either metadata or full message bodies, including attachments, and output in Markdown or JSON
- Use cases include auditing inbox activity, locating project-related emails, and downloading relevant attachments for archival
Quick Start
Authenticate with Gmail: python3 scripts/gmail_search.py auth
Search emails: python3 scripts/gmail_search.py search "meeting notes"
Filter by sender or date: python3 scripts/gmail_search.py search --from "[email protected]" --after 2024/01/01
Download attachments: python3 scripts/gmail_search.py download MESSAGE_ID