Loading...
Loading...
Unified multi-email management and intelligent assistant. Supports IMAP email services such as Gmail and QQ Mail, scheduled email checking, AI-generated summaries and reply drafts, and requires user confirmation before sending.
npx skill4agent add aaaaqwq/claude-code-skills email-managerpassconfig/accounts.json# Gmail (Enable IMAP and generate an app-specific password first)
pass insert email/gmail/your-email@gmail.com
pass insert email/gmail/your-email@gmail.com-app-pass
# QQ Mail (Enable IMAP service and obtain an authorization code first)
pass insert email/qq/your-qq@qq.com
pass insert email/qq/your-qq@qq.com-auth-codeconfig/accounts.json{
"accounts": [
{
"name": "Main Gmail Account",
"email": "your-email@gmail.com",
"provider": "gmail",
"imap_server": "imap.gmail.com",
"imap_port": 993,
"smtp_server": "smtp.gmail.com",
"smtp_port": 587,
"enabled": true
},
{
"name": "QQ Mail Account",
"email": "your-qq@qq.com",
"provider": "qq",
"imap_server": "imap.qq.com",
"imap_port": 993,
"smtp_server": "smtp.qq.com",
"smtp_port": 587,
"enabled": true
}
]
}# Check emails at 8:00
openclaw cron add --name "Morning Email Check" --schedule "0 8 * * *" --script "~/clawd/skills/email-manager/scripts/check_email.py"
# Check emails at 17:00
openclaw cron add --name "Evening Email Check" --schedule "0 17 * * *" --script "~/clawd/skills/email-manager/scripts/check_email.py"| Operation | Permission Level |
|---|---|
| Read email list | 🟢 Automatic |
| Read email content | 🟢 Automatic |
| Generate summary | 🟢 Automatic |
| Create reply draft | 🟢 Automatic |
| Send email | 🟡 Requires Confirmation |
| Delete email | 🔴 Forbidden |
scripts/check_email.pyscripts/send_email.pyscripts/reply_draft.pyconfig/accounts.jsonconfig/providers.json| Email Service | IMAP Server | Port |
|---|---|---|
| Gmail | imap.gmail.com | 993 |
| QQ Mail | imap.qq.com | 993 |
| Outlook | outlook.office365.com | 993 |
| 163 Mail | imap.163.com | 993 |
| 126 Mail | imap.126.com | 993 |
User: Check emails
AI: [Reads all configured emails and generates summary]
📧 Today's Email Summary (2026-02-19 08:00)
Main Gmail Account (3 unread):
1. [Important] Project Progress Update - Zhang San
2. Meeting Invitation: Weekly Friday Meeting - Li Si
3. Order Shipment Notification - Taobao
QQ Mail Account (1 unread):
1. Verification Code Notification - A ServiceUser: Reply to the first email, tell him the project is on track
AI: [Generates reply draft]
📝 Reply Draft:
Recipient: Zhang San <zhangsan@example.com>
Subject: Re: Project Progress Update
Content:
---
Hi Zhang San,
Thank you for your update. The project is progressing smoothly as planned.
Please feel free to contact me if you have any other questions.
Best regards,
Daniel
---
Confirm sending? (Reply "Confirm" to send, "Modify" to adjust, "Cancel" to abort)Connection reset by peerSSL: UNEXPECTED_EOF_WHILE_READINGDOMAIN-SUFFIX,imap.gmail.com,DIRECTMerge.yamlLookupError: unknown encoding: unknown-8bit_parse_emailcheck_email.pytest_connectionheaders_only=True