Recipe Forward Labeled Emails

作者 googleworkspacea3768d0e82ad无许可证31K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库昨天更新

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

AI 生成的概览

查找带有特定标签的 Gmail 邮件,并将其转发到另一个邮箱地址。

功能
该配方描述了一个三步 Gmail 工作流程:列出符合标签查询条件的邮件、获取所选邮件的内容,然后将其作为转发邮件发送给指定收件人。它产出的是转发邮件,而不是文件或报告。各步骤以 gws 命令行调用的形式给出。
适用场景
当 Gmail 账户中的邮件带有某个标签,且需要转交给他人(例如主管或审核人)时使用。它适合需要反复转交带标签邮件的场景,免去手动转发。
运行要求
需要 gws 命令行工具和 gws-gmail 技能,并需要已通过身份验证的相关 Gmail 账户访问权限以及访问 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 [email protected] --subject 'FW: [Original Subject]' --body 'Forwarding for your review:

[Original Message Body]'`

来源与署名

来源:googleworkspace/cli位于skills/recipe-forward-labeled-emails提交a3768d0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架