Home / Market / recipe search and export emails

recipe search and export emails

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

claude-command★ 348350 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- allowed-tools: Bash, Read, Write, Edit argument-hint: [task-parameters] description: Find Gmail messages matching a query and export them for review.

---

Search And Export Emails

Execute Google Workspace workflow: $ARGUMENTS

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

Task

Execute this workflow with the following parameters: $ARGUMENTS

  1. Prerequisites Check
  1. Parameter Preparation
  1. Execute Workflow Steps
  1. Verify Results

Tips

---

License: Apache License 2.0

Source: Google Workspace CLI

Original Skill: recipe-search-and-export-emails