其他

recipe-create-vacation-responder

googleworkspace/cli

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

  • 3万 次安装
  • 3.2万 星标
  • 收录于

安装命令

npx skills add https://github.com/googleworkspace/cli --skill recipe-create-vacation-responder

要点

Set up Gmail out-of-office auto-replies with custom messages and date ranges.

  • Enables vacation responder with customizable subject line, plain-text response body, and optional contact/domain restrictions
  • Supports three core operations: enable auto-reply, verify current settings, and disable when returning
  • Requires the gws-gmail skill as a dependency

SKILL.md

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 backup@company.com.", "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}'