技能 效率工具 Gmail邮件标记归档

Gmail邮件标记归档

v20260401
recipe-label-and-archive-emails
通过 gws 命令自动为符合条件的 Gmail 邮件添加标签并归档,防止通知类邮件堆积,保持收件箱整洁。
获取技能
196 次下载
概览

Label and Archive Gmail Threads

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

Apply Gmail labels to matching messages and archive them to keep your inbox clean.

Steps

  1. Search for matching emails: gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table
  2. Apply a label: gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'
  3. Archive (remove from inbox): gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'
信息
Category 效率工具
Name recipe-label-and-archive-emails
版本 v20260401
大小 959B
更新时间 2026-04-08
语言