Community程式設計與開發github.com

rvacyber/openclaw-protonmail-skill

OpenClaw 技能,透過 Proton Mail Bridge(IMAP/SMTP)整合 ProtonMail。此為測試版軟體,僅經過有限測試——我們正在積極尋求回饋,以改善可靠性並在穩定 1.0 版本發布前找出邊界情況。

openclaw-protonmail-skill 是什麼?

此技能使 OpenClaw 能夠透過 Proton Mail Bridge 與 ProtonMail 安全電子郵件服務互動。它利用本機 IMAP 和 SMTP 伺服器,讓 AI 代理可直接在使用者的本機環境中執行讀取、搜尋、傳送和回覆電子郵件等操作,無需第三方 API 或雲端金鑰。該技能主要設計用於 macOS(透過 Homebrew 安裝 Proton Mail Bridge),並需在 OpenClaw 設定檔中設定環境變數。核心工作流程包括:安裝並啟動 Bridge、使用標準 IMAP/SMTP 認證設定技能,然後使用提供 CLI 工具與 ProtonMail 帳戶互動。安全性仰賴 Bridge 本機處理加密/解密,確保端對端加密且憑證僅儲存在本機。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add rvacyber/openclaw-protonmail-skill

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

預覽

來自技能 README

RVA Cyber

說明文件

RVA Cyber

ProtonMail 技能(v1.0.1)

使用 ProtonMail 透過 Proton Mail Bridge 安全收發電子郵件。穩定版——CLI 已針對實際 Proton Mail Bridge 進行測試。

設定(一次性)

  1. 安裝 Proton Mail Bridge:

    brew install --cask proton-mail-bridge
    
  2. 啟動 Bridge 並登入:

    • 開啟 Proton Mail Bridge 應用程式
    • 使用你的 ProtonMail 憑證登入
    • Bridge 將會產生本機 IMAP/SMTP 憑證
  3. 設定技能: 在你的 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」

運作方式

  1. Proton Mail Bridge 在本機執行,並連線到你的 ProtonMail 帳戶
  2. Bridge 提供本機 IMAP(讀取)和 SMTP(傳送)伺服器
  3. 此技能連線到 Bridge 的本機伺服器
  4. 所有加密/解密都在本機透過 Bridge 進行
  5. 無第三方服務——直接與 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

相關技能