← 返回
未分类 Key 中文

Gmail Checker

Check Gmail for unread inbox emails, filtered by priority. Use when asked to check emails, check inbox, email digest, email summary, or "any new mail". Outpu...
检查 Gmail 中未读的收件箱邮件,按优先级过滤。当被要求检查邮件、检查收件箱、邮件摘要、邮件概览或“任何新邮件”时使用。
99rebels
未分类 clawhub v1.3.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 422
下载
💾 0
安装
1
版本
#latest

概述

Gmail Checker 📧

Fetch unread Gmail messages, filter out noise, deliver a prioritized digest.

Why

Your inbox is full of automated emails, promotions, and updates. This skill surfaces what actually matters — security alerts, personal messages, and anything you've flagged as important.

When to Use

  • "Check my emails"
  • "Any new mail?"
  • "Give me an email digest"
  • "What's in my inbox?"
  • "Email summary"

Setup

First-time users need Google OAuth credentials. If the script exits with a "missing file" error, read references/setup.md and walk the user through the setup flow.

pip install google-api-python-client google-auth-oauthlib

How to Run

python3 scripts/check_gmail.py [hours]          # default: last 24h
python3 scripts/check_gmail.py --json [hours]   # structured JSON output

Config: Copy config.example.json to /gmail-config.json and customize. The script prints the resolved path if credentials are missing.

Data Directory

Credentials and config resolve to:

1. $SKILL_DATA_DIR (set by agent platform)
2. ~/.config/gmail-checker/  (default fallback)

Any platform can set $SKILL_DATA_DIR to their preferred credential store. If unset, ~/.config/gmail-checker/ is used automatically. Works with OpenClaw, Claude Code, Codex, and any agent that can run Python scripts.

Priority Rules

🔴 HIGH   → Sender domain or subject matches your config
🟡 MEDIUM → Gmail-labeled personal messages
🟢 LOW    → Everything else (still inbox, still unread)
Filtered out entirely:
• CATEGORY_PROMOTIONS
• CATEGORY_UPDATES
• CATEGORY_FORUMS
• CATEGORY_SOCIAL

Customize priorities in gmail-config.json:

high_priority_domains:   ["stripe.com", "github.com"]
high_priority_keywords:  ["security", "urgent", "billing"]

Output Example

Unread Inbox (last 24h)

🔴 HIGH
  Security alert: new sign-in from unknown device
  from: Google <no-reply@google.com>

🟡 MED
  Re: dinner friday?
  from: Sarah <sarah@gmail.com>

🟢 LOW
  Your weekly GitHub digest
  from: GitHub <noreply@github.com>

3 unread emails

Adapt formatting for the current channel (bold, bullets, etc.).

Suggested Integration

cron: 0 8 * * * → python3 scripts/check_gmail.py

版本历史

共 1 个版本

  • v1.3.2 当前
    2026-05-03 08:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Github Growth Tracker

99rebels
跟踪 GitHub 仓库增长(星标、分叉、议题、提交),提供定期摘要和趋势分析,将仓库与关注列表对比,用于检查...
★ 0 📥 445

Context Window Tracker

99rebels
Track and report OpenClaw context window usage with a detailed breakdown of what's consuming tokens. Use when: user asks
★ 0 📥 552

Invoice Extractor

99rebels
从发票和收据(PDF或图片)中提取结构化数据,输出 JSON、CSV,或生成费用流水账。适用于有人分享发票时。
★ 0 📥 407