mail-archive

mail-archive is a skill for Claude Code from coltonbearden/carrel. It costs 88 tokens per session (790 once invoked), scanned A, original, MIT.

A workflow for turning exported email files—such as .eml, mbox, or Outlook .pst files—into a searchable archive. It can split messages, group conversations, extract attachments, and link messages to related invoices or cases.

In plain words
What is it for?
Use it to import mailbox exports, search message text and attachment names, organize messages into threads, extract attachments, and prepare relevant email context for other work.
Why use it?
Email exports are difficult to search and connect when they remain in one mailbox file. This makes individual messages and their related files easier to find and reference.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the carrel-mail plugin — 1 skill, 1 command shipped together

Good fit Use it to import mailbox exports, search message text and attachment names, organize messages into threads, extract attachments, and prepare relevant email context for other work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coltonbearden/carrel/mail-archive
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add coltonbearden/carrel --skill mail-archive
Clone the repo
git clone --depth 1 https://github.com/coltonbearden/carrel

Made for: Claude Code.

Or install carrel-mail, the plugin that ships this one along with the rest of its 1 skill, 1 command.

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 mail-archive

README.md
[![agentmods](https://agentmods.dev/badge/skills/coltonbearden/carrel/mail-archive/github.svg)](https://agentmods.dev/skills/coltonbearden/carrel/mail-archive)
Your own site
<a href="https://agentmods.dev/skills/coltonbearden/carrel/mail-archive"><img src="https://agentmods.dev/badge/skills/coltonbearden/carrel/mail-archive/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 mail-archive

Your own site · 80×15
<a href="https://agentmods.dev/skills/coltonbearden/carrel/mail-archive"><img src="https://agentmods.dev/badge/skills/coltonbearden/carrel/mail-archive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 790 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.00088 $0.00790
Opus 5.5 $0.00035 $0.00316
Sonnet 5.5 $0.00018 $0.00158
Haiku 4.5 $0.00009 $0.00079

Measured 1mo ago against content hash 07c43629a823, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mail-archive 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.

plugins/carrel-mail/skills/mail-archive/SKILL.md · 53 lines

How it starts

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

From a mail export to a searchable archive

.eml and .mbox are first-class carrel file types: inspect, convert, index/search, pack, refs and the carrel-guard Read hook all read them with the standard library — no binary needed. Run carrel mail --help and carrel doctor before composing flags; only mail pst needs an external tool (readpst); its exit-3 message carries the install hint for the platform you are on — relay that rather than guessing a package manager.

carrel mail split archive.mbox --out-dir ~/mail/2026 --json      # {n}_{date}_{subject}.eml per message
carrel mail pst export.pst --out-dir ~/mail/outlook               # Outlook → one .eml per message, folders kept

One file per message makes every later step addressable: a search hit, a tag, a note and a reference all point at a single .eml.

carrel --root ~/mail index                 # eml/mbox are indexed like any document
carrel --root ~/mail search 'invoice AND overdue' --type eml
carrel --root ~/mail pack ~/mail/2026 --query 'renewal' --top 10 -o ctx.md

--type eml narrows to messages; the indexed text is headers + body + attachment names, so a search for an attachment's file name finds the message that carried it.

3. Threads and attachments

carrel mail threads ~/mail/2026 --json     # Message-ID / In-Reply-To / References → conversations
carrel mail attachments ~/mail/2026/*.eml --out-dir ~/mail/attachments --json

Attachment records carry sha256, so carrel dedupe ~/mail/attachments finds the copies every reply re-attached.

4. Cross-reference with the rest of the desk

carrel --root ~/desk refs ~/desk --tag       # invoice / PO / IBAN numbers → ref:<kind>:<value> tags
carrel --root ~/desk tag find ref:invoice:inv-2026-0042   # the invoice PDF, the remittance email, the bank export
carrel --root ~/desk refs ~/desk --link      # the same grouping without writing tags

Read the full file on GitHub · 53 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 Changed scan B → A 07c43629a823
  2. 1mo ago First seen · 53 lines · 88 tokens per session scan B a5179ed4b571

Subscribe to this mod's changes

mail-archive is a skill published in the GitHub repository coltonbearden/carrel (2 stars, last pushed 3d ago), licensed MIT. It adds 88 tokens to every session and 790 once invoked, about $0.0004 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-11.