Imap

From clawic/skills · View interactive version

Imap is an AI agent skill from the GitHub repository clawic/skills. Read, search, and sync IMAP mailboxes with UID-safe fetches, precise filters, and attachment-aware workflows.

How to use this skill

Skill file

When to Use

Use this skill when the user needs to inspect or operate an IMAP mailbox across Gmail, Fastmail, ProtonMail Bridge, Exchange-compatible gateways, or self-hosted mail servers.

Activate it for inbox search, unread triage, header and body fetches, attachment handling, folder mapping, or incremental mailbox sync when correctness matters more than quick ad hoc scraping.

Architecture

Memory lives in ~/Clawic/data/imap/. If ~/Clawic/data/imap/ does not exist, run setup.md. See memory-template.md for the default structure and file templates.

~/Clawic/data/imap/
├── memory.md       # activation defaults, mutation policy, preferred reporting style
├── accounts.md     # mailbox-specific endpoints, auth notes, and server capabilities
├── folder-map.md   # canonical folder mapping and provider quirks
├── sync-state.md   # UIDVALIDITY, last UID, MODSEQ, and sync checkpoints
└── playbooks.md    # saved mailbox workflows and reusable search recipes

Quick Reference

Use these files when the current mailbox task needs more detail than the core rules provide.

| Topic | File |

|-------|------|

| Setup and activation defaults | setup.md |

| Memory and file templates | memory-template.md |

| Session planning and discovery | session-strategy.md |

| Search and fetch patterns | search-and-fetch.md |

| State, flags, and sync rules | state-and-flags.md |

| Attachment and MIME handling | attachments.md |

| Failure diagnosis and provider quirks | troubleshooting.md |

Core Rules

1. Discover mailbox capabilities before making assumptions

2. Default to read-safe operations unless the user clearly wants mutation

3. Use UIDs and durable sync markers, not volatile sequence numbers

4. Fetch the minimum data that answers the question

5. Search with explicit server-side filters and report what they mean

6. Treat MIME and attachments as structured data, not opaque blobs

7. Keep credentials out of skill memory and scope network use tightly

IMAP Traps

External Endpoints

| Endpoint | Data Sent | Purpose |

|----------|-----------|---------|

| User-configured IMAP or IMAPS server | authentication material handled by the runtime, mailbox commands, requested headers, bodies, flags, and attachments | list folders, search messages, fetch content, and update mailbox state when approved |

No other data is sent externally.

Security & Privacy

Data that stays local:

Data that leaves your machine:

This skill does NOT:

Trust

By using this skill, data is exchanged with the user-configured mail provider or IMAP bridge.

Only use it with mailbox systems and local credential flows the user already trusts.

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.