# Notmuch

> Search and read local email with the `notmuch` CLI. Use when the user asks to find messages, inspect threads, or review email tags.

- Skill: `adampoit/notmuch` (Agent Skill)
- Install (CLI): `npx skillmds@latest add adampoit/notmuch`
- Raw SKILL.md: https://api.skillmd.com/api/skills/adampoit/notmuch/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: adampoit (https://skillmd.com/u/adampoit)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/adampoit/notmuch

---


# Notmuch

Search local email and inspect message threads with `notmuch`.

```bash
notmuch search --format=json --limit=20 'tag:unread'
```

## Search Threads

Preferred command (machine-readable JSON):

```bash
notmuch search --format=json --limit=20 'from:alice subject:"design review" date:2026-02-01..'
```

Common query terms:

- `from:<email-or-name>`
- `to:<email-or-name>`
- `subject:<term>`
- `tag:<tag-name>`
- `date:YYYY-MM-DD..YYYY-MM-DD`
- `thread:<thread-id>`

## Read Messages

Headers-only summary for a thread/query:

```bash
notmuch show --format=json --body=false 'thread:0000000000000123'
```

Full text output:

```bash
notmuch show --format=text 'thread:0000000000000123'
```

Structured output with bodies:

```bash
notmuch show --format=json 'thread:0000000000000123'
```

## List Tags

```bash
notmuch search --output=tags '*'
```

## Guardrails

Prefer read-only commands in this skill:

- `notmuch search ...`
- `notmuch show ...`

Avoid mutating commands unless the user explicitly requests them (for example `notmuch new`, `notmuch tag`, `notmuch insert`).

