返回顶部
b

bee-push-email蜜蜂推送邮件

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.5.3
安全检测
已通过
237
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

bee-push-email

邮件推送 — IMAP IDLE → OpenClaw Agent → 用户通知

实时邮件监控:IMAP IDLE检测新邮件,触发OpenClaw代理处理并通过用户活跃渠道通知用户。

安全与权限

代理必须明确告知用户以下所有操作,并在开始安装前获得批准。未经用户确认同意,不得继续。

此技能安装的内容(需要root权限)

操作路径/目标说明
系统用户imap-watcher (useradd -r)服务以此非root用户身份运行
Python虚拟环境
/opt/imap-watcher/ | 隔离环境,非系统级 | | pip包 | imapclient(仅在虚拟环境内) | 不安装到系统范围 | | 监控脚本 | /opt/imap-watcher/imap_watcher.py | 从技能目录复制 | | systemd单元 | /etc/systemd/system/imap-watcher.service | 启用并启动,开机自启 | | 配置文件 | /opt/imap-watcher/watcher.conf | chmod 600,仅所有者imap-watcher可访问 | | 日志文件 | /var/log/imap-watcher.log | chmod 640,所有者imap-watcher |

外部下载(需要用户知晓)

内容来源条件
himalaya 二进制文件github.com/pimalaya/himalaya/releases/latest/仅当尚未安装时
方法
curl \| tar 到 /usr/local/bin/ | 写入系统二进制文件 |

访问的凭据

凭据来源用途
IMAP邮箱密码安装时由用户提供IMAP IDLE连接
Telegram botToken
从 ~/.openclaw/openclaw.json 读取 | 通过Telegram API(setMyCommands)注册 /beemail* 命令 |

机器人令牌永远不会被此技能存储。

自动回复行为

默认情况下,代理被指示不回复邮件发件人。这可以防止暴露系统活跃状态,避免钓鱼/垃圾邮件风险。watcher.conf中的allowautoreply字段控制此行为:

行为
false(默认)代理仅通过Telegram通知您。绝不回复发件人。
ask
代理在回复前通过Telegram请求您明确批准。 |
| true | 代理认为适当时可回复发件人(最不安全)。 |

安装时交互式配置。随时通过 --reconfigure + systemctl restart imap-watcher 更改。

如果现有安装中缺少autoreplymode,监控器在启动时会记录[SECURITY] WARNING并通知代理提醒您。在运行--reconfigure之前,将应用安全默认值false。每次操作读取一次,仅用于调用api.telegram.org。代理必须告知用户其机器人令牌将用于修改机器人的命令菜单。

持久性

此技能安装一个持久的后台服务(Restart=always,开机启动)。它维持持续的IMAP连接。服务以专用imap-watcher用户身份运行,而非root用户。

卸载将删除所有内容:服务、systemd单元、/opt/imap-watcher/、日志文件、系统用户以及Telegram机器人命令。

安装流程(4个阶段)

阶段1:依赖项(--deps)

bash python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py --deps

阶段2:测试连接(--test)

bash echo {host:...,port:993,ssl:true,email:...,password:...} | python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py --test

阶段3:安装(仅当阶段1+2通过后)

bash echo {host:...,port:993,ssl:true,email:...,password:...} | python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py

阶段4:验证(自动)

其他模式

注册机器人命令(更新后)

bash python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py --register-commands

重新配置(更新后)

运行clawhub update bee-push-email后,可能会有新的配置字段可用。运行:

bash
python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py --reconfigure

这将检测现有/opt/imap-watcher/watcher.conf中缺失的字段,并交互式地逐一询问——不会触碰您现有的值。之后重启服务:systemctl restart imap-watcher。

强制重新安装

bash echo {...} | python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py --force

显示配置/卸载

bash python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py --show bash /root/.openclaw/workspace/skills/bee-push-email/scripts/uninstall.sh --yes

Telegram机器人命令


点击展开命令详情

/beemail_status

  1. 1. systemctl is-active imap-watcher + systemctl status imap-watcher --no-pager -l
  2. 最后10行日志:journalctl -u imap-watcher -n 10 --no-pager
  3. UID状态:cat /opt/imap-watcher/lastseenuids.json
  4. 报告:状态、运行时间、最后邮件、IMAP状态

/beemail_start

  1. 1. systemctl start imap-watcher → 等待3秒 → 验证活跃 → 显示最后5行日志

/beemail_stop

  1. 1. systemctl stop imap-watcher → 验证不活跃 → 报告

/beemail_test

  1. 1. 检查服务活跃 → 从配置读取目标邮箱 → 告知用户发送测试邮件
  2. 可选运行:setup.py --test

/beemail

快速摘要:服务活跃?+ 最后处理的邮件 + 一行健康状态

/beemail_reply

显示当前自动回复模式:
  1. 1. 运行 python3 /scripts/setup.py --reply-status
  2. 报告当前模式并带标签:已禁用 / 询问 / 已启用

/beemailreplyoff

立即禁用自动回复:
  1. 1. 运行 python3 /scripts/setup.py --reply-off
  2. 服务自动重启
  3. 确认:🔒 自动回复已禁用

/beemailreplyask

设置需要批准模式:
  1. 1. 运行 python3 /scripts/setup.py --reply-ask
  2. 服务自动重启
  3. 确认:❓ 自动回复已设为询问

/beemailreplyon

启用自动回复 — 先警告用户
  1. 1. 告知用户:⚠️ 启用自动回复将向所有发件人(包括垃圾邮件/钓鱼邮件)暴露系统活动。确认?
  2. 仅在用户确认后继续
  3. 运行 python3 /scripts/setup.py --reply-on
  4. 服务自动重启
  5. 确认:⚠️ 自动回复已启用

Telegram机器人命令故障排除

如果安装后/beemail*命令未出现在Telegram菜单中:

  1. 1. 验证注册:
bash python3 /root/.openclaw/workspace/skills/bee-push-email/scripts/setup.py --register-commands
  1. 2. 通过BotFather手动注册:
- 在Telegram中打开 @BotFather - 发送 /setcommands - 选择您的机器人 - 添加每个命令: - beemail — 邮件推送状态和最近邮件 - beemail_start — 启动IMAP邮件监控器 - beemail_stop — 停止IMAP邮件监控器 - beemail_status — 详细的监控器服务状态 - beemail_test — 发送测试邮件验证推送
  1. 3. 如果找不到机器人令牌: 设置程序从 ~/.openclaw

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 bee-push-email-skill-1776091990 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 bee-push-email-skill-1776091990 技能

通过命令行安装

skillhub install bee-push-email-skill-1776091990

下载

⬇ 下载 bee-push-email v1.5.3(免费)

文件大小: 35.72 KB | 发布时间: 2026-4-14 10:04

v1.5.3 最新 2026-4-14 10:04
**bee-push-email 1.5.3 Changelog**

- Added new Telegram bot commands: `/beemail_reply`, `/beemail_reply_off`, `/beemail_reply_ask`, and `/beemail_reply_on` for managing email auto-reply behavior directly from Telegram.
- Updated command usage instructions and documentation to reflect new auto-reply control options.
- Improved skill descriptor with emoji and simplified requirements section.
- No code or logic changes (documentation and trigger/command list updates only).

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部