manage-postfix-dovecot-email
Complete email management for Postfix/Dovecot
от rondoflow★ 37 звёзд на GitHub
Установить manage-postfix-dovecot-email в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Email Manager Skill
This skill provides complete email management using your Postfix/Dovecot infrastructure.
📋 Configuration
Edit config.json in the skill directory:
{
"email_address": "[email protected]",
"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 "[email protected]" \
--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 "[email protected]" \
--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 [email protected]"
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": "[email protected]",
"email_password": "your-password",
"imap_server": "mail.yourdomain.com",
"imap_port": 993,
"smtp_server": "mail.yourdomain.com",
"smtp_port": 465,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл manage-postfix-dovecot-email?
Complete email management for Postfix/Dovecot
Как установить скилл manage-postfix-dovecot-email?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл manage-postfix-dovecot-email запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…