googleworkspace avatar

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-code

Installs 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 GitHub

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
Git & Pull Requests, Code Review & Quality, CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1josiahsiegel avatardocker-security-guidejosiahsiegel/claude-plugin-marketplaceComprehensive Docker security guidelines and threat mitigation. PROACTIVELY activate for: (1) container security review, (2) running as non-root user, (3) read-619skills.sh installs
2alirezarezvani avatarskill-testeralirezarezvani/claude-skillsValidate, test, and score the quality of skills within the claude-skills ecosystem. Comprehensive meta-skill: structure validation, Python script testing (synta618skills.sh installs
3rshankras avatarapp-storershankras/claude-code-apple-skillsApp Store optimization and marketing skills for descriptions, screenshots, keywords, review responses, and comprehensive promotional strategy. Use when user nee611skills.sh installs
4nhadaututtheky avatarmemory-auditnhadaututtheky/neural-memoryComprehensive memory quality review across 6 dimensions: purity, freshness, coverage, clarity, relevance, and structure. Generates prioritized findings with spe609skills.sh installs
5googleworkspace avatarrecipe-audit-external-sharinggoogleworkspace/cliFind and review Google Drive files shared outside the organization.602skills.sh installs
6plugin87 avatara11y-auditplugin87/ux-ui-agent-skillsAudit a UI or design against WCAG 2.2 AA/AAA and ARIA patterns, returning criterion-referenced findings with severity and specific fixes. Use when the user want598skills.sh installs