自动化32k · #9228
recipe-forward-labeled-emails
它能做什么
这个工具可以在你的 Gmail 中查找带有特定标签的邮件,并把它们转发到另一个邮箱地址。就像整理收件箱一样,它会自动发送重要邮件的副本。
适用场景
- ✓当你想把所有带有“紧急”标签的邮件发给你的老板时。
- ✓当你想把带有“客服”标签的客户邮件转给客服团队时。
- ✓当你想把带有“发票”标签的邮件保存一份副本到另一个账户时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-forward-labeled-emails/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/recipe-forward-labeled-emails/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill recipe-forward-labeled-emails
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-forward-labeled-emails/SKILL.md -o SKILL.md
可以这样问 AI
“把所有带有“待审核”标签的邮件转发给我的经理。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先在你的 Gmail 中搜索带有你指定标签的邮件,然后把这些邮件的内容作为新邮件,发送到你选择的地址。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- Find labeled messages:
gws gmail users messages list --params '{"userId": "me", "q": "label:needs-review"}' --format table - Get message content:
gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}' - Forward via new email: `gws gmail +send --to manager@company.com --subject 'FW: [Original Subject]' --body 'Forwarding for your review:
[Original Message Body]'`
常见问题
还需要安装别的东西吗?
需要。你要先加载 'gws-gmail' 技能,这个工具才能正常使用。
我可以选择转发到哪里吗?
可以。使用工具时,你需要提供目标邮箱地址。
我可以选择使用哪个标签吗?
可以。你可以指定工具要在 Gmail 中查找的标签。
详情
作者的原始描述
Find Gmail messages with a specific label and forward them to another address.
repo: googleworkspace/cli
热度
- GitHub 星标
- 32k
- 排名
- #9228
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …