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.

Good fit Use it to read recent or matching messages, send email through Gmail, Outlook, or another SMTP service, and move, delete, or archive messages.

Compare 6 skills from other repositories ↓
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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for email-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/email-manager"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/email-manager.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00010 $0.00268
Sonnet 5.5 $0.00005 $0.00134
Haiku 4.5 $0.00003 $0.00067

Measured 1mo ago against content hash 74de0fecb7a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 3mo ago), licensed MIT. It adds 25 tokens to every session and 669 once invoked, about $0.0001 per session on Opus 5.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