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 从公开仓库中收录这些内容。

举报或申请下架