googleworkspace avatar

Recipe Forward Labeled Emails

This recipe automates the tedious process of finding Gmail messages with specific labels and forwarding them to another email address. You'd use this when you need to regularly send labeled emails to managers, team members, or external stakeholders for review or action. It runs three specific commands: searches for messages by label using Gmail's query syntax, retrieves the full message content including subject and body, then sends a new forwarded email with proper formatting. The workflow is straightforward but saves significant manual clicking when you're processing batches of labeled messages that need to be routed elsewhere.

skills.sh installs
30.7K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill recipe-forward-labeled-emails --agent claude-code

Installs into .claude/skills of the current project.

Files

Forward Labeled Gmail Messages

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

Find Gmail messages with a specific label and forward them to another address.

Steps

  1. Find labeled messages: gws gmail users messages list --params '{"userId": "me", "q": "label:needs-review"}' --format table
  2. Get message content: gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'
  3. Forward via new email: `gws gmail +send --to manager@company.com --subject 'FW: [Original Subject]' --body 'Forwarding for your review:

[Original Message Body]'`

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1googleworkspace avatarpersona-event-coordinatorgoogleworkspace/cliPlan and manage events — scheduling, invitations, and logistics.30.6Kskills.sh installs
2googleworkspace avatargws-modelarmorgoogleworkspace/cliGoogle Model Armor: Filter user-generated content for safety.30.6Kskills.sh installs
3googleworkspace avatarpersona-sales-opsgoogleworkspace/cliManage sales workflows — track deals, schedule calls, client comms.30.6Kskills.sh installs
4googleworkspace avatarrecipe-create-expense-trackergoogleworkspace/cliSet up a Google Sheets spreadsheet for tracking expenses with headers and initial entries.30.6Kskills.sh installs
5googleworkspace avatarrecipe-create-feedback-formgoogleworkspace/cliCreate a Google Form for feedback and share it via Gmail.30.5Kskills.sh installs
6googleworkspace avatarrecipe-post-mortem-setupgoogleworkspace/cliCreate a Google Docs post-mortem, schedule a Google Calendar review, and notify via Chat.30.5Kskills.sh installs