# Recipe Search And Export Emails

> Find Gmail messages matching a query and export them for review.

- Skill: `digitalspeed/recipe-search-and-export-emails` (Agent Skill)
- Install (CLI): `npx skillmds@latest add digitalspeed/recipe-search-and-export-emails`
- Raw SKILL.md: https://api.skillmd.com/api/skills/digitalspeed/recipe-search-and-export-emails/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: digitalspeed (https://skillmd.com/u/digitalspeed)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/digitalspeed/recipe-search-and-export-emails

---


# Search and Export Emails

> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`

Find Gmail messages matching a query and export them for review.

## Steps

1. Search for emails: `gws gmail users messages list --params '{"userId": "me", "q": "from:client@example.com after:2024/01/01"}'`
2. Get full message: `gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'`
3. Export results: `gws gmail users messages list --params '{"userId": "me", "q": "label:project-x"}' --format json > project-emails.json`


