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 從公開儲存庫中收錄這些內容。

檢舉或申請下架