SKILL.md
readonlyread-only
name
recipe-label-and-archive-emails
description
為符合條件的郵件套用 Gmail 標籤並封存,保持收件匣整潔。
標籤與封存 Gmail 郵件串
先決條件: 載入以下技能以執行此食譜:
gws-gmail
為符合條件的郵件套用 Gmail 標籤並封存,保持收件匣整潔。
步驟
- 搜尋符合條件的郵件:
gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table - 套用標籤:
gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}' - 封存(從收件匣移除):
gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'






