Xpersona
B

Bee Push Email

CLAWHUB · Unverified

Monitors email in real-time via IMAP IDLE and triggers the OpenClaw agent to notify users through active channels like Telegram or Discord.

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17a9x6bmr0wxhxm6qev5y1yv583fgv3:bee-push-email-skill
  1. Install using `clawhub skill install s17a9x6bmr0wxhxm6qev5y1yv583fgv3:bee-push-email-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/canihojr/bee-push-email-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-canihojr-bee-push-email-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,582 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: bee-push-email
description: Push email notifications via IMAP IDLE + Himalaya + OpenClaw agent. Detects new emails in real-time and triggers the agent to process and notify the user. Use when: setting up email push notifications, configuring IMAP watcher, installing bee-push-email system, testing email connectivity, checking system dependencies, viewing email-push config, troubleshooting IMAP IDLE watcher, or managing the imap-watcher systemd service. Also handles uninstall/cleanup of the bee-push-email system. Trigger on beemail commands: /beemail, /beemail_start, /beemail_stop, /beemail_status, /beemail_test, /beemail_reply, /beemail_reply_off, /beemail_reply_ask, /beemail_reply_on. Also: start watcher, stop watcher, watcher status, email push status, registrar comandos, comandos no aparecen, beemail no funciona en telegram.
emoji: 📧
requirements:
  bins:
    - python3
    - systemctl
    - openclaw
---

# Email Push — IMAP IDLE → OpenClaw Agent → User Notification

Real-time email monitoring: IMAP IDLE detects new emails, triggers OpenClaw agent to process and notify the user via their active channel.

## Security & Permissions

**The agent MUST explicitly inform the user of all actions below and obtain approval before starting installation. Do not proceed without confirmed user consent.**

### What this skill installs (requires root)

| Action | Path / Target | Notes |
|---|---|---|
| **System user** | `imap-watcher` (useradd -r) | Service runs as this non-root user |
| **Python venv** | `/opt/imap-watcher/` | Isolated env, not system-wide |
| **pip package** | `imapclient` (inside venv only) | Not installed system-wide |
| **Watcher script** | `/opt/imap-watcher/imap_watcher.py` | Copied from skill directory |
| **systemd unit** | `/etc/systemd/system/imap-watcher.service` | Enabled + started, restarts on boot |
| **Config file** | `/opt/imap-watcher/watcher.conf` | chmod 600, owner imap-watcher only |
| **Log file** | `/var/log/imap-watcher.log` | chmod 640, owner imap-watcher |

### External downloads (requires user awareness)

| What | From | Condition |
|---|---|---|
| `himalaya` binary | `github.com/pimalaya/himalaya/releases/latest/` | Only if not already installed |
| Method | `curl \| tar` into `/usr/local/bin/` | Writes a system binary |

### Credentials accessed

| Credential | Source | Usage |
|---|---|---|
| IMAP email password | Provided by user at install time | IMAP IDLE connection |
| Telegram `botToken` | Read from `~/.openclaw/openclaw.json` | Registers `/beemail*` commands via Telegram API (`setMyCommands`) |

The bot token is **never stored** by this skill.

### Auto-reply behaviour

By default, the agent is instructed **not to reply to email senders**. This prevents exposing that the system is active and avoids phishing/spam risks. The `allow_auto_reply` field in `watcher.conf` controls this:

| Value | Behaviour |
|---|---|
| `false` (default) | Agent notifies you via Telegram only. **Never** replies to sende

README.md

# 🐝 bee-push-email v1.5.3

**Real-time push email notifications for OpenClaw agents.**

bee-push-email detects new emails the instant they arrive using IMAP IDLE (push, not polling) and triggers your OpenClaw agent to process and notify you through your active channel — Telegram, Discord, or any other connected surface.

## What It Does

```
📧 Email arrives
    ↓
🖥️ IMAP IDLE (push, ~1s latency)
    ↓
🤖 OpenClaw agent processes it
    ↓
📱 You get notified on Telegram/Discord/etc.
```

- **Push, not polling** — IMAP IDLE keeps a persistent connection. The mail server pushes events to you instantly. No 15-minute intervals, no wasted API calls.
- **Agent-driven** — Your OpenClaw agent reads, analyzes, and decides what to do: notify you, move spam, flag important emails, or stay silent.
- **Non-interactive setup** — Designed for agent use. The agent asks you questions, builds the config, and runs the installer. Zero TTY required.
- **Self-healing** — Auto-reconnects on connection loss. Runs as a systemd service with automatic restart.
- **Multi-account** — Configure once per email account. Each runs as an independent watcher service.

## How It Works

### Architecture

| Component | Role |
|---|---|
| `imap_watcher.py` | Python script maintaining IMAP IDLE connection |
| `setup.py` | Installer with dependency checks, connection tests, and post-install verification |
| `uninstall.sh` | Clean removal script |
| `imap-watcher.service` | Systemd unit for daemon management |

### Flow

1. **IMAP IDLE** connection stays open (near-zero resource usage)
2. Mail server pushes new email event
3. Watcher detects it, triggers `openclaw agent --deliver`
4. Agent reads email with **Himalaya**, analyzes it, notifies user

### Tracking

Uses **UID tracking** (not SEEN flags) — doesn't matter if another client reads the email first. Every new UID triggers a notification.

## Dependencies

| Tool | Required | Auto-installed | Purpose |
|---|---|---|---|
| **python3** | ✅ | No | Runs the watcher |
| **python3-venv** | ✅ | No | Isolated environment for imapclient |
| **openclaw** | ✅ | No | Triggers the agent on new email |
| **systemd** | ✅ | No | Service management |
| **curl** | ⚠️ | No | Auto-installs himalaya if missing |
| **himalaya** | ⚠️ | Yes* | Agent uses it to read/move/reply emails |
| **imapclient** | ✅ | Yes | Python IMAP library (installed in venv, not system-wide) |

*\*Himalaya is downloaded from GitHub Releases only if not already installed. Supports x86_64, arm64, armv7.*

## Security & Permissions

This skill makes the following system-level changes. **The agent should inform the user and get approval before installing.**

| Action | Details |
|---|---|
| **Python venv** | Creates `/opt/imap-watcher/` with isolated Python environment |
| **pip install** | Installs `imapclient` inside the venv only (not system-wide) |
| **himalaya download** | Downloads binary from GitHub Releases to `/usr/local/bin/` (only if missing) |
| **systemd service** | 

_meta.json

{
  "ownerId": "kn73bzpnave82zk9p9y80dqd7s83c8hc",
  "slug": "bee-push-email-skill",
  "version": "1.5.3",
  "publishedAt": 1774342869217
}

CHANGELOG.md

# Changelog — bee-push-email

All notable changes to this project will be documented in this file.

## [1.5.3] - 2026-03-24

### Fix: SKILL.md frontmatter non-standard fields
- **Frontmatter simplified to OpenClaw standard schema**: removed non-standard fields (`requires`, `credentials`, `install`, `persistence`, `version`) that caused the OpenClaw parser to silently reject the SKILL.md. The parser only recognises `name`, `description`, `emoji`, and `requirements.bins`.
- **`requirements.bins`** now uses the correct field name (was `requires.binaries`): lists `python3`, `systemctl`, `openclaw`.
- **`_meta.json` cleaned**: removed non-standard extended fields (`requires`, `credentials`, `install`, `persistence`) — registry only uses `ownerId`, `slug`, `version`, `publishedAt`. Security documentation moved to SKILL.md body where it belongs.
- All extended security/install documentation remains intact in the SKILL.md body (Security & Permissions section).

---

## [1.5.2] - 2026-03-23

### Bug Fix (Critical)
- **Gateway token missing for non-root service user**: the `imap-watcher` system user has no home directory, so `openclaw agent --deliver` failed with `gateway token missing` on fresh installs. The watcher was looking for the token in `/opt/imap-watcher/.openclaw/openclaw.json` which doesn't exist.

### Changes
- **`read_openclaw_gateway_token()`** in `setup.py`: reads `gateway.auth.token` from the OpenClaw config at install time (as root), trying `$OPENCLAW_HOME`, `/root/.openclaw/openclaw.json`, and `~/.openclaw/openclaw.json`
- **`validate_config()`**: automatically reads and stores the gateway token as `openclaw_token` in `watcher.conf` (chmod 600) during install. Shows warning if not found with instructions for manual fallback.
- **`notify_openclaw()`** in `imap_watcher.py`: passes `--token <openclaw_token>` to every `openclaw agent --deliver` call. Logs `[SECURITY] WARNING` if token is missing.
- **`verify()` step [5/5]**: calls `verify_openclaw_deliver()` — a real `openclaw agent --deliver` test with the stored token. Install fails if delivery fails, ensuring the issue is caught at install time not at runtime.
- **`CONFIG_MIGRATIONS`**: added `openclaw_token` entry (v1.5.2) so existing installs get prompted to add the token via `--reconfigure`
- **`SECURITY_CRITICAL_FIELDS`**: added `openclaw_token` — watcher logs `[SECURITY] WARNING` on startup if field is absent and notifies the agent

### Upgrade Note
Existing installs are missing `openclaw_token`. The watcher will log a `[SECURITY] WARNING` on next restart and notify the agent. Run `--reconfigure` to add the token without reinstalling.

---

## [1.5.1] - 2026-03-23

### Bug Fix (Medium)
- **Auto-reply approval missing email details** (reported v1.4.1): when `auto_reply_mode: "ask"`, the agent was receiving a generic message without sender or subject, making it impossible for the user to decide whether to approve a reply.

### Changes
- **`fetch_email_metadata(uids, config)`** added to

skill-card.md

## Description:

Monitors email in real time via IMAP IDLE and triggers the OpenClaw agent to notify users through active channels such as Telegram or Discord.

This skill is ready for commercial/non-commercial use.

## Publisher:

[canihojr](https://clawhub.ai/user/canihojr)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and OpenClaw users use this skill to configure a persistent IMAP watcher that delivers new-email events to an agent for notification, triage, and optional reply workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill installs a persistent email-monitoring service with mailbox and agent access.

Mitigation: Review the systemd service before enabling it and install only when continuous mailbox monitoring is acceptable.

Risk: Mailbox credentials and an OpenClaw gateway token are stored locally for the watcher.

Mitigation: Limit local file access, review the generated configuration, and rotate credentials if the host or configuration file is exposed.

Risk: Automatic Himalaya installation introduces supply-chain exposure.

Mitigation: Prefer a preinstalled, verified Himalaya binary or verify the downloaded binary version and checksum before use.

Risk: Email content can influence downstream agent behavior, including reply workflows.

Mitigation: Keep auto-reply disabled or set to approval-only unless the operator accepts the risk of agent-generated replies.

Risk: Auto-detected delivery sessions can send notifications to an unintended active channel.

Mitigation: Set an explicit channel and target in configuration for predictable notification routing.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/canihojr/skills/bee-push-email-skill)
- [Publisher profile](https://clawhub.ai/user/canihojr)
- [Himalaya releases](https://github.com/pimalaya/himalaya/releases/latest/)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown with inline bash and JSON snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Guides installation, status checks, Telegram command handling, auto-reply settings, and cleanup for a systemd-based email watcher.]

## Skill Version(s):

1.5.3 (source: server release metadata, _meta.json, CHANGELOG released 2026-03-24)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Bee Push Email and adjacent AI workflows.