
ProtonMail 技能 (v1.0.1)
通过 Proton Mail Bridge 使用 ProtonMail 实现安全电子邮件。稳定版 — 命令行工具已针对实时 Proton Mail Bridge 进行测试。
设置(一次性)
-
安装 Proton Mail Bridge:
brew install --cask proton-mail-bridge -
启动 Bridge 并登录:
- 打开 Proton Mail Bridge 应用程序
- 使用你的 ProtonMail 凭据登录
- Bridge 将生成本地的 IMAP/SMTP 凭据
-
配置技能: 添加到你的 OpenClaw 配置(
~/.openclaw/openclaw.json):{ "skills": { "entries": { "protonmail": { "enabled": true, "env": { "PROTONMAIL_ACCOUNT": "[email protected]", "PROTONMAIL_BRIDGE_PASSWORD": "bridge-generated-password" } } } } }获取 Bridge 凭据:
- 在 Bridge 中,点击你的账户 → 邮件配置
- 复制 IMAP 密码(不是你的 ProtonMail 密码)
- 使用
skills.entries.protonmail(而不是skills.protonmail)
命令行使用
该技能提供了一个 protonmail 命令行工具:
# 列出收件箱(最近 10 封邮件)
protonmail list-inbox --limit=10 [--unread]
# 搜索邮件
protonmail search "from:[email protected]" --limit=20
# 阅读特定邮件
protonmail read <uid>
# 发送邮件
protonmail send [email protected] --subject="会议" --body="下午3点见"
# 回复邮件
protonmail reply <uid> --body="好的!"
常见请求
- 列出收件箱: "查看我的 ProtonMail 收件箱"
- 搜索邮件: "在 ProtonMail 中搜索来自 [email protected] 的邮件"
- 阅读邮件: "阅读 ProtonMail UID 31 的邮件"
- 发送邮件: "通过 ProtonMail 发送一封关于项目的邮件给 [email protected]"
- 回复: "回复 ProtonMail UID 31 的邮件"
工作原理
- Proton Mail Bridge 在本地运行并连接到你的 ProtonMail 账户
- Bridge 提供本地 IMAP(读取)和 SMTP(发送)服务器
- 此技能连接到 Bridge 的本地服务器
- 所有加密/解密操作通过 Bridge 在本地完成
- 无第三方服务 — 直接 ProtonMail 集成
安全性
- ✅ 官方 Proton 软件(经过审计的开源 Bridge)
- ✅ 保持端到端加密
- ✅ 凭据仅本地存储
- ✅ 无 API 密钥或令牌 — 使用标准 IMAP/SMTP
- ✅ Bridge 密码与你的 ProtonMail 密码分离
故障排除
"连接被拒绝" 错误
- 检查 Bridge 是否运行: 打开 Proton Mail Bridge 应用程序
- 验证端口: Bridge 应显示 127.0.0.1:1143(IMAP)和 127.0.0.1:1025(SMTP)
"身份验证失败"
- 使用 Bridge 密码,而非 ProtonMail 密码: 从 Bridge → 账户 → 邮件配置获取
- 检查账户邮件地址: 必须完全匹配(例如
[email protected]或[email protected])
"找不到技能"
- 重新安装技能: 在技能目录中运行
npm run install-skill - 检查 OpenClaw 配置: 确保
skills.protonmail.enabled: true
开发
参见 README.md 了解开发设置和测试。
许可
MIT — 参见 LICENSE
