
ProtonMail 技能(v1.0.1)
使用 ProtonMail 透過 Proton Mail Bridge 安全收發電子郵件。穩定版——CLI 已針對實際 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)
CLI 使用方式
此技能提供了一個 protonmail CLI 工具:
# 列出收件匣(最近 10 封郵件)
protonmail list-inbox --limit=10 [--unread]
# 搜尋郵件
protonmail search "from:[email protected]" --limit=20
# 讀取特定郵件
protonmail read <uid>
# 傳送郵件
protonmail send [email protected] --subject="會議" --body="下午三點見"
# 回覆郵件
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
