360 Secure SkillHub
360 安全技能中心

IMAP Mailbox

以命令行方式连接用户配置的 IMAP 邮箱,列出最近邮件的发件人、主题和日期摘要,按 UID 读取邮件正文,按关键词搜索主题或发件人,生成每日邮件摘要,并将指定邮件的附件下载到指定目录;账号与授权码保存在本地配置文件中。

shimonxin
shimonxin
热度 40.85
最近更新 2026-05-25 12:47:18
分类:协作依赖:代码执行 / 第三方 API / 读写文件应用场景:摘要总结 / 工作流 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add imap-mailbox
Metadata
name
imap-mailbox
description
Read and manage emails via IMAP protocol. List, read, search, and download email attachments. Supports digest mode for daily briefings. Triggers: check email, read inbox, new mail, email digest.

IMAP Mailbox

Read and manage emails via the IMAP protocol.

Use Cases

  • User asks to check email, view inbox, or read email content
  • User asks to search emails (by sender, subject, etc.)
  • User asks to mark emails as read/unread
  • Daily email digest / briefing

Commands

List Recent Emails

imap-mailbox list [limit]

Lists summaries (sender, subject, date) of the most recent emails. Default: 10.

Read Email Content

imap-mailbox read <uid>

Read the full content of the email with the specified UID.

Search Emails

imap-mailbox search <keyword>

Search emails where the subject or sender contains the keyword.

Email Digest

imap-mailbox digest

Generate a daily email digest summary — categorized and condensed for quick review.

Download Attachments

imap-mailbox download <uid> [output-dir]

Download attachments from the specified email to the output directory.

Configuration

Config file located at ~/.config/imap-mailbox/config.json, containing email address, IMAP server, and authorization token.

{
  "email": "user@example.com",
  "host": "imap.example.com",
  "port": 993,
  "token": "your-authorization-code"
}

Security Notes

  • Authorization tokens are stored locally and never uploaded
  • Recommend rotating authorization tokens periodically
  • To revoke access, regenerate the authorization code in your email provider settings