
Recipe Search And Export Emails
Need to pull specific emails out of Gmail for analysis or record keeping? This recipe chains together Gmail API calls to search your inbox using Gmail's query syntax (sender, dates, labels, whatever), then exports the full message details to JSON. It's essentially a three step process: search with your query, grab full messages by ID, pipe everything to a file. Requires the gws-gmail skill as a dependency. The JSON export angle is genuinely useful if you're building reports, doing compliance audits, or just want a local backup of project correspondence without clicking through the web interface. Straightforward automation for a common pain point.
- skills.sh installs
- 619
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill recipe-search-and-export-emails --agent claude-codeInstalls into .claude/skills of the current project.
Files
Need to pull specific emails out of Gmail for analysis or record keeping? This recipe chains together Gmail API calls to search your inbox using Gmail's query syntax (sender, dates, labels, whatever), then exports the full message details to JSON. It's essentially a three step process: search with your query, grab full messages by ID, pipe everything to a file. Requires the gws-gmail skill as a dependency. The JSON export angle is genuinely useful if you're building reports, doing compliance audits, or just want a local backup of project correspondence without clicking through the web interface. Straightforward automation for a common pain point.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/googleworkspace/cli
- Categories
- Git & Pull Requests, Code Review & Quality, CLI & Terminal, Office & Documents
More from googleworkspace/cli
All 113- Recipe Audit External Sharing602
- Gws Groupssettings598
- Recipe Deploy Apps Script596
- Recipe Triage Security Alerts583
- Recipe Transfer File Ownership582
- Gws Alertcenter570
- Gws Cloudidentity568
- Gws Vault563
- Gws Licensing552
- Gws Reseller541
- Gws Gmail84.3K
- Gws Drive76.5K
- Gws Gmail Send76.1K
- Gws Shared68K
- Gws Calendar62.9K
- Gws Sheets60.7K
- Gws Docs60.2K
- Gws Sheets Read52K
- Gws Docs Write51.5K
- Gws Calendar Agenda50.9K
- Gws Drive Upload50.6K
- Gws Calendar Insert49.5K
- Gws Gmail Triage48.2K
- Gws Sheets Append48K