name: email-bridge description: Email management skill for AI assistants with real-time notifications, smart categorization (7 categories), verification code extraction, and HTML content sanitization. Supports Gmail, QQ Mail, and NetEase. homepage: https://github.com/ryanchan720/email-bridge source: https://github.com/ryanchan720/email-bridge version: 0.6.3
Email management skill for OpenClaw. Provides real-time email monitoring with smart categorization and clean notifications for AI assistants.
cd skills/email-bridge
pip install -e .
⚠️ Security Note: Do NOT share authorization codes in chat. Configure accounts via CLI only.
# Add account (prompts for authorization code securely)
email-bridge accounts add your@qq.com -p qq
# Sync emails
email-bridge sync
# Start daemon for real-time notifications
email-bridge daemon start -d
QQ Mail: https://service.mail.qq.com/detail/0/75 (send SMS, get 16-char code)
NetEase (163/126): Settings → POP3/SMTP/IMAP → Enable → Get code
Gmail: Requires OAuth setup (see README.md)
openclaw system event發現更多技能外掛,請訪問7w4.net。
Subject-only classification for fast, reliable categorization:
| Category | Icon | Description | Example Keywords |
|---|---|---|---|
| verification | 🔐 | Verification codes, activation | 驗證碼, OTP, activate, 繫結郵箱 |
| security | ⚠️ | Security alerts, login warnings | 安全提醒, security alert, 密碼修改 |
| transactional | 📦 | Orders, payments, shipping | 訂單確認, receipt, 發貨通知 |
| promotion | 🎁 | Marketing, promotions, rewards | 獎勵, 優惠, promo, discount |
| subscription | 📰 | Newsletters, digests | newsletter, 訂閱, weekly digest |
| spam_like | 🚫 | Suspected spam | 中獎, FREE, click here now |
| normal | — | Regular email | (default) |
Chinese: 郵箱、郵件、發郵件、檢視郵件、驗證碼、QQ郵箱、Gmail
English: email, mail, send email, check email, verification code
# List recent emails
email-bridge messages list -n 10
# Get verification codes from recent emails
email-bridge codes
# Send email
email-bridge send -a <account_id> -t recipient@example.com -s "Subject" -b "Body"
# Daemon management
email-bridge daemon status
email-bridge daemon stop
Configuration file: ~/.email-bridge/config.json
Default configuration (auto-generated, minimal):
{
"daemon": {
"poll_interval": 300,
"notify_openclaw": true
}
}
Full configuration with all options (customize as needed):
{
"daemon": {
"poll_interval": 300,
"notify_openclaw": true,
"notification": {
"include_body": false,
"body_max_length": 500,
"include_verification_codes": true,
"include_links": false
}
}
}
| Option | Default | Description |
|---|---|---|
include_body |
false |
Include email body preview in notifications |
body_max_length |
500 |
Max characters for body preview |
include_verification_codes |
true |
Auto-extract and show verification codes |
include_links |
false |
Include action links (verify/reset) |
When new emails arrive, the daemon sends formatted notifications:
📧 新郵件: account@qq.com
1. 🔐 Google
您的驗證碼
✨ 驗證碼: 123456
2. ⚠️ Microsoft
登入提醒
📝 We noticed a new sign-in...
3. 🎁 OKX
150 USDT 獎勵等您拿
📝 親愛的歐易使用者,歐易誠邀您加入邀請好友計劃...
HTML-only emails are processed through:
<style>, <script>, and all HTML tagsExample: HTML with invisible chars → Clean readable text
All data stored locally at ~/.email-bridge/:
~/.email-bridge/
├── email_bridge.db # SQLite database (accounts, messages)
├── config.json # Configuration file
├── daemon.pid # Daemon process ID
├── daemon.log # Logs
└── gmail/
├── credentials.json # OAuth credentials
└── token_*.json # OAuth tokens
⚠️ Credentials are stored unencrypted. Protect this directory.
# Stop daemon
email-bridge daemon stop
# Remove all stored data
rm -rf ~/.email-bridge
# For Gmail: revoke at https://myaccount.google.com/permissions
# For QQ/NetEase: regenerate authorization codes in email settings
All from PyPI: - click >= 8.0 - pydantic >= 2.0 - imaplib2 >= 3.6 - google-api-python-client >= 2.0 (Gmail only) - google-auth-oauthlib >= 1.0 (Gmail only)
~/.email-bridge/ directorysanitize_for_notification()這是一個質量較高的郵件管理工具,功能豐富實用。它能幫你統一管理多個郵箱、自動分類郵件、智慧提取驗證碼,還能過濾垃圾內容和潛在攻擊程式碼。介面清晰,文件詳細,小白也能上手。不過 Gmail 配置稍複雜,憑證檔案存在本地未加密(建議保護好電腦),版本號有時對不上。總體推薦,適合需要頻繁處理各類郵件的人使用。