recipe-create-vacation-responder
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSet Up a Gmail Vacation Responder
设置Gmail假期回复器
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.
前提条件: 加载以下技能以执行此方案:gws-gmail
设置带有自定义消息和日期范围的Gmail外出自动回复。
Steps
步骤
- 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}' - Verify settings:
gws gmail users settings getVacation --params '{"userId": "me"}' - Disable when back:
gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'
- 启用假期回复:
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}' - 验证设置:
gws gmail users settings getVacation --params '{"userId": "me"}' - 返回后禁用:
gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'