recipe-create-gmail-filter

recipe-create-gmail-filter

人気

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

2.7万スター
1669フォーク
更新日 2026/3/31
リクエストされた翻訳はまだ完了していません。元の英語を表示しています。
SKILL.md
読み取り専用
name
recipe-create-gmail-filter
description

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

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