跳到正文
TakoAPI
返回技能列表

gmail-cleaner

由 cedarscy 提供

Web & Frontend Development
286下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Clean and organize Gmail accounts in bulk.

描述

该技能的功能

Bulk-cleans Gmail accounts using the Gmail API. Supports trashing or permanently deleting emails by sender or search query, creating labels, setting up auto-filters, and restoring emails from trash. Multiple accounts are handled via separate OAuth token files.

Processes up to 1000 messages per API call with dry-run support, so large inbox cleanups are faster and safer than working through Gmail's web interface.

何时使用

  • Bulk deleting promotional emails older than 30 days
  • Removing all emails from a specific newsletter or spam sender
  • Setting up auto-filters to label incoming banking or work emails
  • Scanning an inbox to identify top senders before cleaning
  • Restoring accidentally trashed emails and applying a label

示例工作流

输入

User asks: Clean my Gmail — trash all promotional emails older than 30 days and set up labels for banking and work

智能体
  1. 1

    Runs auth.py with --scopes settings to authenticate and obtain an OAuth token

  2. 2

    Runs scan.py to sample the inbox and identify top senders and category counts

  3. 3

    Runs clean.py with --query 'category:promotions older_than:30d' and --dry-run to preview matches

  4. 4

    Runs clean.py without --dry-run to move matching emails to trash

  5. 5

    Runs organize.py to create Banking and Work labels and set up inbox filters

输出

Promotional emails moved to trash and Banking/Work labels created with active filters for future emails

前置要求

  • Google Cloud project with Gmail API enabled
  • OAuth 2.0 credentials JSON (Desktop app type) downloaded from Google Cloud Console

安装

clawhub install cedarscy/gmail-cleaner

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接