跳到正文
TakoAPI
返回技能列表

imap-idle

由 topitip 提供

Web & Frontend Development
1.4k下载量由 clawskills.sh 提供
3星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Event-driven email monitoring using IMAP IDLE protocol.

描述

该技能的功能

IMAP IDLE replaces scheduled email polling with a persistent server connection that pushes notifications when new mail arrives. Latency drops from up to an hour to under a second, and no tokens are consumed while waiting.

Unlike cron-based email checks that burn tokens on every empty poll, IMAP IDLE consumes zero tokens while idle and delivers sub-second notifications.

何时使用

  • Replacing hourly cron email checks with instant notifications
  • Processing customer support emails as they arrive
  • Monitoring multiple email accounts from one listener
  • Triggering workflows the moment a specific email lands
  • Cutting token costs from empty polling runs

示例工作流

输入

User asks: notify me when a new email arrives

智能体
  1. 1

    Opens persistent IMAP connection to the configured account

  2. 2

    Enters IDLE mode so the server can push notifications

  3. 3

    Receives server push when new mail arrives

  4. 4

    Fetches email headers and body preview

  5. 5

    Sends batched event via webhook to wake OpenClaw

输出

OpenClaw receives the webhook and processes the incoming email immediately

前置要求

  • IMAP account credentials (host, port, username, password)

安装

clawhub install topitip/imap-idle

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接