Install
openclaw skills install email-163-com-backupManage 163.com emails with sending (text/HTML, attachments), reading, searching, folder and attachment management via IMAP ID and encrypted connections.
openclaw skills install email-163-com-backup版本: 1.0.0
创建日期: 2026-02-19
作者: OpenClaw
描述: 163 邮箱完整邮件管理工具(Python 实现)
# Python 3.6+ 已包含所需库
# 无需额外安装
编辑 ~/.config/email-163-com/config.json:
{
"email": "your_email@163.com",
"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 friend@example.com --subject "Hello" --body "Hi!"
# 发送附件
email-163-com send --to friend@example.com --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": "newolf20000@163.com",
"password": "KZtfcUWCKGNFf9M9",
"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": "newolf20000@163.com"
},
"defaults": {
"folder": "INBOX",
"count": 5,
"output_dir": "~/Downloads"
}
}
email-163-com send \
--to colleague@example.com \
--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" <noreply@notify.cloudflare.com>
Subject: [Action required] Verify your email address
Date: Wed, 18 Feb 2026 14:17:02
ID: 15
Flags:
--------------------------------------------------
✅ Message sent successfully!
To: friend@example.com
Subject: Hello
Attachments: file.pdf (1.2 MB)
# 设置配置文件权限(仅自己可读)
chmod 600 ~/.config/email-163-com/config.json
也可以使用环境变量代替配置文件:
export EMAIL_163_USER="newolf20000@163.com"
export EMAIL_163_PASS="KZtfcUWCKGNFf9M9"
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