📧 openclaw-apple-mail

Apple Mail Integration Plugin for OpenClaw & Hermes

npm version npm downloads MIT License macOS

🚀 Quick Start

Installation

# Install from npm
npm install @jehadurre/openclaw-apple-mail

# For OpenClaw
openclaw plugins install @jehadurre/openclaw-apple-mail

# For Hermes
hermes plugins install @jehadurre/openclaw-apple-mail
View on GitHub View on npm

✨ Key Features

🔒 Per-Thread Session Isolation

Each email thread gets its own isolated OpenClaw/Hermes session, preventing conversation mixing.

🛡️ Security First

Allowlist enforcement, self-reply prevention, and outbound restrictions keep your agent secure.

📊 HTML Table Support

Extract and process HTML tables from emails with proper sanitization.

⚙️ Highly Configurable

Customize polling intervals, reply policies, and thread context management.

📖 How It Works

openclaw-apple-mail uses AppleScript to integrate with Mail.app on macOS:

⚙️ Configuration

Add to your ~/.openclaw/openclaw.json or ~/.hermes/hermes.json:

{
  "channels": {
    "apple-mail": {
      "enabled": true,
      "accounts": {
        "your-email@example.com": {
          "email": "your-email@example.com",
          "mailboxAccount": "iCloud",
          "allowFrom": [
            "allowed-sender@example.com"
          ],
          "pollIntervalMs": 30000,
          "archiveOnReply": false
        }
      }
    }
  }
}

📝 Requirements

👤 Author

Md. Jehadur Rahman (Emran)

GitHubWebsiteDev.to

🤝 Contributing

Contributions are welcome! Check out the Contributing Guide to get started.

Report an Issue Submit a PR