imap-email_skill

This skill reads and manages email via IMAP, enabling you to check, fetch, search, and mark messages as read across servers.
  • Python

2.5k

GitHub Stars

6

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill imap-email

  • _meta.json460 B
  • package-lock.json17.7 KB
  • package.json541 B
  • setup.sh1.5 KB
  • skill.json5.2 KB
  • SKILL.md5.7 KB

Overview

This skill reads and manages email via IMAP, supporting any standard IMAP server including ProtonMail Bridge and Gmail. It checks for new or unread messages, fetches full message content, searches mailboxes with flexible filters, and marks messages read or unread. The tool is designed for automation, cron integration, and simple CLI usage.

How this skill works

The skill connects to an IMAP server using credentials from a .env file or a setup helper. It exposes CLI commands to check mailboxes, fetch messages by UID, run advanced searches, list folders, and toggle read/unread flags. Outputs are JSON-friendly for easy parsing and integration with cron jobs or messaging delivery channels.

When to use it

  • Automate periodic inbox checks and deliver summaries to a notification channel.
  • Search for recent messages from a specific sender or containing keywords.
  • Fetch full email content for archiving, processing, or downstream workflows.
  • Integrate with ProtonMail Bridge or Gmail for app-password-based access.
  • Mark processed messages read/unread as part of an automated pipeline.

Best practices

  • Store IMAP credentials in a .env file and never commit it to version control.
  • Use ProtonMail Bridge with its generated password and correct TLS settings.
  • Prefer app-specific passwords for Gmail and enable IMAP in account settings.
  • Match IMAP_TLS and port settings to the server (993 for SSL, 143 for STARTTLS).
  • Limit search results and use recent/since filters to reduce load and false matches.

Example use cases

  • Morning digest: run check --limit 10 --recent 12h, summarize unread items, and send a summary.
  • Urgent monitor: run search --recent 1h --unseen and notify on messages containing priority keywords.
  • Sender-specific scan: search --from "boss@example.com" --recent 24h, fetch content, then mark-read.
  • Weekly archive: search --recent 7d --limit 50 and export full message bodies to backup storage.
  • Mailbox discovery: list-mailboxes to validate folder names before running targeted searches.

FAQ

Run the setup helper or point IMAP_HOST to 127.0.0.1:1143, use the Bridge-generated password, set IMAP_TLS=false and IMAP_REJECT_UNAUTHORIZED=false for the Bridge certificate.

What formats do search time filters accept?

Use relative times like 30m, 2h, 7d for --recent, or YYYY-MM-DD for --since and --before.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational