imap-idle-sneder
使用 IMAP IDLE 保持长连接实时监听新邮件,并发送给指定飞书账号。当需要:1)监听新邮件并实时推送通知,2)建立邮件推送服务,3)替代轮询检查新邮件时使用此 skill。
Best use case
imap-idle-sneder is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
使用 IMAP IDLE 保持长连接实时监听新邮件,并发送给指定飞书账号。当需要:1)监听新邮件并实时推送通知,2)建立邮件推送服务,3)替代轮询检查新邮件时使用此 skill。
Teams using imap-idle-sneder should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/imap-idle-sender/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How imap-idle-sneder Compares
| Feature / Agent | imap-idle-sneder | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
使用 IMAP IDLE 保持长连接实时监听新邮件,并发送给指定飞书账号。当需要:1)监听新邮件并实时推送通知,2)建立邮件推送服务,3)替代轮询检查新邮件时使用此 skill。
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# IMAP IDLE 邮件监听
使用 IMAP IDLE 模式保持长连接,实时接收服务器推送的新邮件通知。
## 快速开始
### 1. 运行监听脚本
```bash
python ~/.openclaw/skills/imap-idle/scripts/imap_idle.py
```
脚本会在后台保持运行,收到新邮件时:
- 控制台打印通知
- 写入通知文件:`~/.openclaw/workspace/mail_notifications.json`
### 2. 配置自启动(可选)
使用 OpenClaw cron 定时检查通知文件,或配置系统服务开机启动。
## 配置修改
如需修改邮箱配置,编辑 `scripts/imap_idle.py`:
```python
IMAP_SERVER = "imap.qq.com" # IMAP 服务器
IMAP_PORT = 993 # 端口
EMAIL = "你的邮箱@qq.com" # 邮箱账号
PASSWORD = "你的授权码" # 授权码
```
## 支持的邮箱
- QQ 邮箱 ✓
- Gmail(需使用 App Password)
- Outlook
- 其他支持 IMAP IDLE 的邮箱
## 通知文件格式
`mail_notifications.json` 内容示例:
```json
[
{
"subject": "邮件主题",
"from": {
"name": "发件人姓名",
"email": "from@example.com"
},
"date": "Thu, 26 Feb 2026 10:30:00 +0800",
"received_at": "2026-02-26T10:30:00"
}
]
```
## 与飞书集成
新邮件到达时自动发送飞书通知(卡片消息):
- 📧 显示发件人姓名和邮箱
- 📝 显示邮件主题
- 📄 显示邮件摘要(前200字)
**飞书配置**(从 openclaw.json 自动获取):
- 发送给用户 飞书ID: `ou_febxxxxxxxxxxxxxxxx`
如需修改接收人,编辑 `scripts/imap_idle.py` 中的 `FEISHU_USER_ID`。
## 注意事项
- 需要邮箱开启 IMAP 服务
- QQ/Gmail 等需要使用**授权码**而非登录密码
- IDLE 超时后会自动重连Related Skills
imap-idle-watcher
Real-time email monitoring using IMAP IDLE — no OAuth, no token expiration. Sets up a persistent connection to any IMAP server (Gmail, Outlook, Yahoo, etc.) and triggers a user-defined command instantly when new email arrives. Runs as a systemd service with auto-reconnect. Use when: (1) setting up email-triggered automation, (2) watching an inbox for new messages in real-time, (3) replacing OAuth-based email polling that keeps breaking due to token expiry, (4) building email-to-webhook or email-to-script pipelines. NOT for: sending email, reading/parsing email bodies, or non-Linux systems without systemd.
imap-smtp-email
Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Supports multiple accounts. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.
aws-idle-resource-detector
Detect AWS idle and zombie resources consuming cost with zero meaningful utilization
---
name: article-factory-wechat
humanizer
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
find-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
tavily-search
Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.
baidu-search
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
agent-autonomy-kit
Stop waiting for prompts. Keep working.
Meeting Prep
Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.
self-improvement
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks.
botlearn-healthcheck
botlearn-healthcheck — BotLearn autonomous health inspector for OpenClaw instances across 5 domains (hardware, config, security, skills, autonomy); triggers on system check, health report, diagnostics, or scheduled heartbeat inspection.