recipe-label-and-archive-emails

Solid

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

AI & Automation 27,010 stars 1421 forks Updated yesterday Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
32
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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"]}'`

Details

Author
googleworkspace
Repository
googleworkspace/cli
Created
3 months ago
Last Updated
yesterday
Language
Rust
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category