非 Gmail 邮箱接入实战:基于 Himalaya CLI 启用 IMAP Hook
问题/场景:仅用 Gmail 集成会限制企业/自建邮箱场景。前置条件:已安装并配置 Himalaya 账户;可执行 OpenClaw webhooks 命令。实施步骤:1) 安装 `himalaya`;2) `himalaya account configure` 建立账户;3) 执行 `openclaw webhooks imap setup` 配置账号/目录/轮询参数;4) 用 `openclaw webhooks imap run` 验证消息流。关键命令:见 PR 验证步骤。验证方法:向 INBOX 发测试邮件后,agent 在轮询周期内处理成功。风险与边界:轮询模式受邮件服务商限频与连接策略影响。来源归因:PR #32673。
GITHUBDiscovered 2026-03-08Author MPavleski
Prerequisites
- Himalaya CLI is installed and can authenticate to your IMAP account.
- You can update OpenClaw config and run webhook commands on the host.
Steps
- Install Himalaya (for example via `cargo install himalaya`) and verify binary is in PATH.
- Configure account credentials with `himalaya account configure <account-name>`.
- Run `openclaw webhooks imap setup --account <account-name> --folder INBOX --poll-interval 20 --mark-seen --query "not flag Seen"`.
- Start polling with `openclaw webhooks imap run`, then send a test message to confirm processing.
Commands
cargo install himalayahimalaya account configure <account-name>openclaw webhooks imap setup --account <account-name> --folder INBOX --poll-interval 20 --mark-seen --query "not flag Seen"openclaw webhooks imap runVerify
New INBOX mail is ingested and acted on within configured poll interval.
Caveats
- Polling can introduce delay compared with push/webhook providers.
- Account auth/TLS requirements vary by provider and may need extra setup(需验证).
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗