Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

email-manager电子邮件管理器

Agent Skill

email-manager 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

25,943

周安装

1,103

GitHub Stars

公开资料未说明

下载量

9,089
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:email-manager(电子邮件管理器)
来源仓库:https://github.com/soderholmm/email-manager
安装命令:
openclaw skills install email-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install email-manager

简介

基于 Postfix/Dovecot 的完整电子邮件管理系统。

  • 提供邮件查找、检索与筛选功能,支持关键词定位。
  • 适用于需要快速定位候选结果的任务场景。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 需核实维护状态及是否触发命令执行或文件读写。
  • email-manager 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
email-manager
description
Complete email management for Postfix/Dovecot
version
1.0.0
author
Mattias Söderholm
triggers
requires
bins

Email Manager Skill

This skill provides complete email management using your Postfix/Dovecot infrastructure.

📋 Configuration

Edit config.json in the skill directory:

{
  "email_address": "your-email@domain.com",
  "email_password": "your-password",
  "imap_server": "mail.yourdomain.com",
  "smtp_server": "mail.yourdomain.com"
}

📨 Available Operations

List folders

python3 scripts/imap_utils.py list-folders
python3 scripts/imap_utils.py list-folders --output json

Example output:

📁 Available folders:
  • Drafts 📝 DRAFTS
  • Sent 📤 SENT
  • Trash 🗑️ TRASH
  • Junk 📧 SPAM
  • INBOX 📥 INBOX
  • Archive
  • Projects/ClientA

List emails

python3 scripts/imap_utils.py list --folder INBOX --limit 10
python3 scripts/imap_utils.py list --flagged-only --output json

Read email

python3 scripts/imap_utils.py read --message-id 1234
python3 scripts/imap_utils.py read --message-id 1234 --output json

Save draft

python3 scripts/imap_utils.py save-draft \
  --to "user@example.com" \
  --subject "Draft subject" \
  --body "Draft content"

List drafts

python3 scripts/imap_utils.py list-drafts
python3 scripts/imap_utils.py list-drafts --output json

Update draft

python3 scripts/imap_utils.py update-draft \
  --draft-id 1234 \
  --subject "Updated subject" \
  --body "Updated content"

Send email

python3 scripts/smtp_utils.py send \
  --to "user@example.com" \
  --subject "Test" \
  --body "Hello"

Send draft

python3 scripts/smtp_utils.py send-draft --draft-id 1234

Flag/star email

python3 scripts/imap_utils.py flag --message-id 1234 --add
python3 scripts/imap_utils.py flag --message-id 1234 --remove
python3 scripts/imap_utils.py list --flagged-only

Move email

python3 scripts/imap_utils.py move \
  --message-id 1234 \
  --from-folder INBOX \
  --to-folder Projects

Create folder

python3 scripts/imap_utils.py create-folder --name "NewFolder"

Delete email

python3 scripts/imap_utils.py delete --message-id 1234

Empty trash

python3 scripts/imap_utils.py empty-trash

Search emails

python3 scripts/imap_utils.py search --query "FROM user@example.com"
python3 scripts/imap_utils.py search --query "subject:meeting" --output json

Spam operations

# List spam
python3 scripts/imap_utils.py list-spam
python3 scripts/imap_utils.py list-spam --output json

# Mark as spam
python3 scripts/imap_utils.py mark-spam --message-id 1234
python3 scripts/imap_utils.py mark-spam --message-id 1234 --from-folder INBOX

# Mark as not spam
python3 scripts/imap_utils.py mark-ham --message-id 1234
python3 scripts/imap_utils.py mark-ham --message-id 1234 --from-folder Junk

# Empty spam folder
python3 scripts/imap_utils.py empty-spam

🔍 Folder Auto-Detection

The skill automatically detects folder names for:

  • Inbox: INBOX, Inbox
  • Drafts: Drafts, INBOX.Drafts, Draft
  • Sent: Sent, Sent Messages, INBOX.Sent
  • Trash: Trash, Deleted, INBOX.Trash
  • Junk/Spam: Junk, Spam, INBOX.Junk, INBOX.Spam, Bulk
  • Archive: Archive, Archives, INBOX.Archive

📁 Folder Name Handling

The skill cleans up folder names for display by removing IMAP flags like \HasNoChildren and quotes. For raw folder data with flags:

python3 scripts/imap_utils.py list-folders --output json

Example JSON output:

[
  {
    "name": "Drafts",
    "delimiter": "/",
    "flags": ["\\HasNoChildren", "\\Drafts"]
  }
]

🤖 AI Usage Examples

Always use --output json when parsing results:

# List drafts and find specific one
drafts=$(python3 scripts/imap_utils.py list-drafts --output json)
# Parse JSON to find draft by subject

# Send the draft
python3 scripts/smtp_utils.py send-draft --draft-id $ID

# Check spam count
spam=$(python3 scripts/imap_utils.py list-spam --output json)

# Get folder metadata
folders=$(python3 scripts/imap_utils.py list-folders --output json)

✅ Testing

Test your configuration:

python3 scripts/imap_utils.py list-folders
python3 scripts/imap_utils.py list --limit 5
python3 scripts/imap_utils.py list-spam

All operations are non-interactive and suitable for automation.

🚀 Setup Instructions

# 1. Create skill directory
mkdir -p ~/OpenClaw-Workspace/skills/email-manager/scripts
cd ~/OpenClaw-Workspace/skills/email-manager

# 2. Create config.json
cat > config.json << 'EOF'
{
    "email_address": "your-email@yourdomain.com",
    "email_password": "your-password",
    "imap_server": "mail.yourdomain.com",
    "imap_port": 993,
    "smtp_server": "mail.yourdomain.com",
    "smtp_port": 465,
    "folders": {
        "drafts": "Drafts",
        "sent": "Sent",
        "trash": "Trash",
        "junk": "Junk"
    }
}
EOF

# 3. Make scripts executable
chmod +x scripts/*.py

# 4. Test it!
python3 scripts/imap_utils.py list-folders

📝 Common Spam Folder Names

Different Dovecot configurations use different spam folder names:

  • Junk (most common)
  • Spam
  • INBOX.Junk
  • INBOX.Spam
  • Bulk
  • Junk E-mail

Set it explicitly in config.json if auto-detection doesn't work:

{
    "folders": {
        "junk": "INBOX.Junk"
    }
}

🎯 Key Benefits

  • ✅ Zero dependencies - Uses only Python standard library
  • ✅ No virtualenv needed - Works with system Python
  • ✅ JSON config - Easy to edit, no parsing libraries needed
  • ✅ Non-interactive - Perfect for AI automation
  • ✅ Full feature set - Drafts, send, folders, flags, move, delete, spam
  • ✅ Debian/Ubuntu compatible - No "externally-managed-environment" errors

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.52%
按下载量换算6,773

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills