@ivangdavila

Email

OpenClaw email plugin for mailbox search, message reading, and explicit IMAP/SMTP sends

当前版本
v0.1.0
code-plugin社区source-linked

Email Plugin

OpenClaw plugin for working with a real mailbox over IMAP and SMTP.

It covers the expected operational email surface: list mailboxes, search recent messages, read a full message, update read or starred state, move a message, send a new email, and reply to an existing thread.

Config

{
  plugins: {
    entries: {
      email: {
        enabled: true,
        config: {
          imap: {
            host: "imap.gmail.com",
            port: 993,
            secure: true,
            username: "me@example.com",
            password: "YOUR_IMAP_APP_PASSWORD", // pragma: allowlist secret
          },
          smtp: {
            host: "smtp.gmail.com",
            port: 465,
            secure: true,
            username: "me@example.com",
            password: "YOUR_SMTP_APP_PASSWORD", // pragma: allowlist secret
            from: "me@example.com",
            name: "Your Name",
          },
          defaultMailbox: "INBOX",
          defaultSearchLimit: 10,
          defaultSearchWindow: 100,
          requireExplicitSendConfirmation: true,
        },
      },
    },
  },
}

If smtp.username, smtp.password, or smtp.from are omitted, the plugin falls back to the IMAP credentials where possible.

Tools

  • email_mailboxes_list
  • email_messages_search
  • email_message_get
  • email_message_update
  • email_message_move
  • email_send
  • email_reply

Usage

After enabling email, ask for things like:

  • List my mailboxes and tell me which ones look like archive folders.
  • Search INBOX for unread emails from billing@vendor.com about invoices from the last week.
  • Open message 4821 in INBOX and summarize what it asks for.
  • Mark message 4821 as read and starred.
  • Move message 4821 from INBOX to Archive.
  • Send an email to finance@example.com with subject "Q2 draft" and attach /tmp/q2.xlsx.
  • Reply to message 4821 saying that I will review it today.

Notes

  • email_messages_search scans the most recent defaultSearchWindow messages in the selected mailbox and returns up to defaultSearchLimit matches unless overridden.
  • email_send and email_reply require confirm=true by default so the agent cannot send a real email without an explicit confirmation step.
  • Most hosted providers require an app password or provider-specific IMAP/SMTP credentials. OAuth login flows are out of scope for this plugin.

源码与版本

源码仓库

clawic/plugins

打开仓库

源码提交

301ae1bdf8ffb15ec92be623cbcf74fde5a69fc8

查看提交

安装命令

openclaw plugins install clawhub:email

元数据

  • 包名: email
  • 创建时间: 2026/03/29
  • 更新时间: 2026/03/29
  • 执行代码:
  • 源码标签: 301ae1bdf8ffb15ec92be623cbcf74fde5a69fc8

兼容性

  • 构建于 OpenClaw: 2026.3.23-2
  • 插件 API 范围: >=2026.3.23
  • 标签: latest
  • 文件数: 9