360 Secure SkillHub
360 安全技能中心

recipe-forward-labeled-emails

借助 gws 命令行调用 Gmail 接口:先按标签列出邮件,再读取单封邮件内容,最后以新邮件形式转发到指定地址。需预先具备 gws 可执行文件并加载 gws-gmail 技能。

分类:协作
googleworkspace
热度 72.32
最近更新 2026-10-18 17:15:32

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add googleworkspace/cli/recipe-forward-labeled-emails
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
recipe-forward-labeled-emails
description
Find Gmail messages with a specific label and forward them to another address.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-gmail"]}}}

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]'`