Recipe Create Vacation Responder

作者 googleworkspacea3768d0e82ad無授權條款31K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

Enable a Gmail out-of-office auto-reply with a custom message and date range.

AI 產生的概覽

啟用、驗證並停用帶有自訂郵件內容與日期範圍的 Gmail 休假自動回覆。

功能
這個配方說明如何使用 gws 命令列工具設定 Gmail 休假自動回覆。它會啟用帶有自訂主旨與內文的自動回覆、驗證目前設定,並在人員返回後停用該回覆。它產生的是 Gmail 帳戶設定變更,而不是檔案。
適用情境
當你需要為一段不在職期間設定 Gmail 外出自動回覆時使用。它也適合用來確認自動回覆是否已啟用,或在返回後將其關閉。
執行需求
需要 gws 執行檔與 gws-gmail 技能;需要已通過驗證的 Gmail 帳戶存取權以及網路存取。它不附帶指令碼,只有指示。

Set Up a Gmail Vacation Responder

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

Enable a Gmail out-of-office auto-reply with a custom message and date range.

Steps

  1. Enable vacation responder: gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": true, "responseSubject": "Out of Office", "responseBodyPlainText": "I am out of the office until Jan 20. For urgent matters, contact [email protected].", "restrictToContacts": false, "restrictToDomain": false}'
  2. Verify settings: gws gmail users settings getVacation --params '{"userId": "me"}'
  3. Disable when back: gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'

來源與署名

來源:googleworkspace/cli位於skills/recipe-create-vacation-responder提交a3768d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架