recipe-label-and-archive-emails
SolidApply 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
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
AI & Automation Solid
recipe-forward-labeled-emails
Find Gmail messages with a specific label and forward them to another address.
27,010 Updated yesterday
googleworkspace AI & Automation Solid
recipe-create-gmail-filter
Create a Gmail filter to automatically label, star, or categorize incoming messages.
27,010 Updated yesterday
googleworkspace AI & Automation Solid
recipe-save-email-attachments
Find Gmail messages with attachments and save them to a Google Drive folder.
27,010 Updated yesterday
googleworkspace