email-manager

email-manager is a skill for Claude Code, Codex from JansenAnalytics/claudex. It costs 25 tokens per session (669 once invoked), scanned A, original, MIT.

An email tool for reading, searching, sending, and managing messages through IMAP, SMTP, or an email API. IMAP retrieves mail, while SMTP sends it.

In plain words
What is it for?
Use it to read recent or matching messages, send email through Gmail, Outlook, or another SMTP service, and move, delete, or archive messages.
Why use it?
It brings inbox searches, message sending, and mailbox management into coding workflows instead of requiring separate manual steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/imap-reader.py --host imap.gmail.com --user [email protected] --password "app-password" --count 10.

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex
agentmods
npx agentmods add skills/jansenanalytics/claudex/email-manager

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for email-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/email-manager.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/email-manager)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/email-manager"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/email-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00669
Opus 5 $0.00013 $0.00334
Sonnet 5 $0.00005 $0.00134
Haiku 4.5 $0.00003 $0.00067

Measured 2d ago against content hash 74de0fecb7a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

email-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/email-manager/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

email-manager

Read, search, send, and manage email via IMAP/SMTP or API (Gmail, Outlook).

When to Use

  • Checking inbox or unread messages
  • Searching emails by sender, subject, date, or content
  • Sending or composing email messages
  • Managing folders (move, delete, archive)
  • Setting up email automation or configuring clients programmatically

Scripts

scripts/imap-reader.py

Read inbox via IMAP. Connects, fetches recent messages, displays subject/from/date.

# List 10 most recent emails
python3 scripts/imap-reader.py --host imap.gmail.com --user [email protected] --password "app-password" --count 10

# Search by sender
python3 scripts/imap-reader.py --host imap.gmail.com --user [email protected] --password "app-password" --search "FROM [email protected]"

# Dry-run (no server connection, shows sample output)
python3 scripts/imap-reader.py --dry-run

Environment variables: IMAP_HOST, IMAP_USER, IMAP_PASS (alternative to flags).

scripts/email-sender.py

Send email via SMTP (supports Gmail, Outlook, custom SMTP).

# Send an email
python3 scripts/email-sender.py --host smtp.gmail.com --port 587 --user [email protected] --password "app-password" \
  --to [email protected] --subject "Hello" --body "Message body"

# Dry-run (compose without sending)
python3 scripts/email-sender.py --dry-run --to [email protected] --subject "Test" --body "Draft"

scripts/email-composer.py

Compose and format emails (plain text or HTML). Always dry-run — outputs the composed message without sending.

# Compose a plain text email
python3 scripts/email-composer.py --to [email protected] --subject "Meeting" --body "Let's meet tomorrow at 10."

# Compose HTML email
python3 scripts/email-composer.py --to [email protected] --subject "Report" --html --body "<h1>Q4 Report</h1><p>See attached.</p>"

References

  • references/imap-commands.md — Common IMAP commands and search syntax
  • references/smtp-setup.md — SMTP configuration for Gmail, Outlook, custom servers
  • references/gmail-api-quickstart.md — Gmail API setup with OAuth2

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 82 lines · 25 tokens per session scan A 74de0fecb7a8

Subscribe to this mod's changes

email-manager is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 669 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

c-email

Read, send, search, and label email via gog (Gmail CLI) or himalaya (IMAP). Supports inbox management, drafting replies, thread viewing, and label/folder operations across Gmail and standard IMAP accounts.

daxaur/openpaw · 49 tokens

mail-operations

Use this skill whenever the user wants to interact with email. This includes reading inbox, sending emails, replying, searching messages, managing labels and categories, downloading attachments, setting up auto-reply rules, or triggering agents to handle incoming emails. Supports Gmail, Outlook, and IMAP/SMTP (QQ…

desirecore/market · 151 tokens

imap-smtp-email

Read, search, and manage email via IMAP protocol. Send email via SMTP. Supports Gmail, Outlook, 163.com, 126.com, QQ Mail, and any standard IMAP/SMTP server with multi-account support.

wentorai/Research-Claw · 51 tokens

mailbox

Read, search, send, and manage email across Gmail, QQ, 163, Outlook and any IMAP/SMTP account from the command line. Use when the user asks to "read my email", "查邮件", "look up an Amazon order email", "find the customer review notification", "send an email", "回复邮件", "delete spam", "查未读", "show unread", "synchronize my…

leeguooooo/Mailbox · 120 tokens

inbox-triage

Email inbox triage for AI agents — scan, categorize, draft replies, surface urgent items, and archive noise. Supports Gmail and IMAP for inbox zero workflows.

theagentledger/agent-skills · 39 tokens

inbox-review

Morning inbox workflow -- multi-account scan, thread grouping, priority classification, draft replies.

n24q02m/better-email-mcp · 20 tokens