跳到正文
Skillpedia
自动化32k · #9218

recipe-create-gmail-filter

它能做什么

这个工具可以帮你整理 Gmail 收件箱。它能自动创建规则,把重要邮件打上标签、归类,甚至移动到指定文件夹,不需要你手动操作。

适用场景

  • ✓想让某个发件人(比如商店)的邮件自动标记为“收据”时。
  • ✓想把某个项目的邮件单独归到另一个分类时。
  • ✓想让推广邮件自动归档,不再占用主收件箱时。

技能链接

https://github.com/googleworkspace/cli/blob/main/skills/recipe-create-gmail-filter/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/recipe-create-gmail-filter/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“创建一个筛选规则,让所有来自 newsletter@example.com 的邮件都打上“电子报”标签,并从收件箱中移除。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会先检查你已有的标签。如有需要,它会新建一个标签。最后,它会在 Gmail 中设置规则,根据发件人或其他特征,对新收到的邮件执行你指定的操作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Create a Gmail Filter

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

Create a Gmail filter to automatically label, star, or categorize incoming messages.

Steps

  1. List existing labels: gws gmail users labels list --params '{"userId": "me"}' --format table
  2. Create a new label: gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}'
  3. Create a filter: gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "receipts@example.com"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'
  4. Verify filter: gws gmail users settings filters list --params '{"userId": "me"}' --format table
常见问题

需要先安装什么吗?

需要。要使用这个功能,必须先加载“gws-gmail”技能。

可以新建标签吗?

可以。你可以新建标签,比如“收据”或“工作”,用来整理邮件。

创建筛选规则后,邮件会怎样?

这取决于你设置的规则。邮件可以被打上标签、加星标,甚至移出主收件箱。

详情

作者的原始描述

Create a Gmail filter to automatically label, star, or categorize incoming messages.

repo: googleworkspace/cli

热度

GitHub 星标
32k
排名
#9218
许可证
Apache-2.0
更新时间
2026/10/6

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能