Comprehensive Python tool for managing 163.com emails with sending, reading, searching, folder, and attachment handling via IMAP ID and SMTP.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install email-163-com或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install email-163-com⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/email-163-com/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
版本: 1.0.0 创建日期: 2026-02-19 作者: OpenClaw 描述: 163 邮箱完整邮件管理工具(Python 实现)
---
---
# Python 3.6+ 已包含所需库
# 无需额外安装
编辑 ~/.config/email-163-com/config.json:
{
"email": "[email protected]",
"password": "your_auth_code",
"imap_server": "imap.163.com",
"imap_port": 993,
"smtp_server": "smtp.163.com",
"smtp_port": 465
}
# 查看帮助
email-163-com --help
# 读取邮件
email-163-com read
# 发送邮件
email-163-com send --to [email protected] --subject "Hello" --body "Hi!"
# 发送附件
email-163-com send --to [email protected] --subject "File" --attach file.pdf
# 列出文件夹
email-163-com folders
---
# 简单发送
email-163-com send --to <email> --subject <subject> --body <body>
# 发送 HTML 邮件
email-163-com send --to <email> --subject <subject> --html "<h1>Hello</h1>"
# 发送附件
email-163-com send --to <email> --subject <subject> --attach file1.pdf --attach file2.txt
# 从文件读取正文
email-163-com send --to <email> --subject <subject> --file message.txt
# 读取最新 5 封
email-163-com read
# 读取指定数量
email-163-com read --count 10
# 读取指定文件夹
email-163-com read --folder "已发送" --count 5
# 读取完整邮件(含正文)
email-163-com read --id 123 --full
# 列出所有文件夹
email-163-com folders
# 创建文件夹
email-163-com folder create "MyFolder"
# 删除文件夹
email-163-com folder delete "MyFolder"
# 按发件人搜索
email-163-com search --from "Cloudflare"
# 按主题搜索
email-163-com search --subject "verify"
# 组合搜索
email-163-com search --from "阿里云" --subject "通知" --count 10
# 删除邮件
email-163-com delete --id 123
# 移动邮件
email-163-com move --id 123 --to "已删除"
# 标记已读
email-163-com flag --id 123 --set seen
# 标记未读
email-163-com flag --id 123 --unset seen
# 列出邮件附件
email-163-com attachments --id 123
# 下载附件
email-163-com attachments --id 123 --download --output ~/Downloads/
---
~/.config/email-163-com/config.json
{
"email": "[email protected]",
"password": "your_auth_code",
"imap_server": "imap.163.com",
"imap_port": 993,
"smtp_server": "smtp.163.com",
"smtp_port": 465,
"imap_id": {
"name": "OpenClaw",
"version": "1.0.0",
"vendor": "email-163-com",
"support_email": "[email protected]"
},
"defaults": {
"folder": "INBOX",
"count": 5,
"output_dir": "~/Downloads"
}
}
---
email-163-com send \
--to [email protected] \
--subject "项目进度更新" \
--file report.txt \
--attach progress.pdf
email-163-com read --count 10 --unread
email-163-com search \
--from "Cloudflare" \
--subject "verify" \
--count 5
email-163-com search --folder "垃圾邮件" --count 100
email-163-com delete --folder "垃圾邮件" --all
---
📬 INBOX: 16 messages total
📧 From: 阿里云
Subject: 域名信息修改成功通知
Date: Wed, 18 Feb 2026 22:00:53
ID: 16
Flags: \Seen
--------------------------------------------------
📧 From: "Cloudflare" <[email protected]>
Subject: [Action required] Verify your email address
Date: Wed, 18 Feb 2026 14:17:02
ID: 15
Flags:
--------------------------------------------------
✅ Message sent successfully!
To: [email protected]
Subject: Hello
Attachments: file.pdf (1.2 MB)
---
# 设置配置文件权限(仅自己可读)
chmod 600 ~/.config/email-163-com/config.json
也可以使用环境变量代替配置文件:
export EMAIL_163_USER="[email protected]"
export EMAIL_163_PASS="your_auth_code"
---
Error: SELECT Unsafe Login
解决: 确保配置了 IMAP ID 信息(默认已配置)
Error: LOGIN failed
解决: 检查授权码是否正确(不是登录密码)
Error: Cannot attach file
解决: 检查文件路径是否正确,文件是否可读
---
---
---
~/.openclaw/workspace/skills/email-163-com/README.md~/.config/email-163-com/config.json~/.openclaw/workspace/skills/email-163-com/email.py---
首次发布: 2026-02-19 维护者: OpenClaw Team
安装 Email 163 Com 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/email-163-com/ 目录(个人级,所有项目可用),或 .claude/skills/email-163-com/(项目级)。重启 AI 客户端后,用 /email-163-com 主动调用,或让 AI 根据上下文自动发现并使用。
Email 163 Com 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Email 163 Com 可免费安装使用。请查阅仓库了解许可证信息。
Comprehensive Python tool for managing 163.com emails with sending, reading, searching, folder, and attachment handling via IMAP ID and SMTP.
Email 163 Com 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。