Inbox and search
Retrieve a bounded result set instead of loading an entire mailbox. Use server-side filters whenever the caller already knows the direction or message category.
Filter messages, reconstruct conversations, retrieve attachments, and extract structured values through stable API and tool contracts.
mails0 stores email metadata for API retrieval and preserves raw messages for parsing and attachment access. Agents can list or search inboxes, filter by direction and automatic labels, retrieve a specific message, inspect reconstructed threads, and request structured extraction without scraping a webmail interface.
Search begins with a scoped mailbox and a specific question
Retrieve a bounded result set instead of loading an entire mailbox. Use server-side filters whenever the caller already knows the direction or message category.
Follow Message-ID, In-Reply-To, and References relationships to present a conversation rather than isolated messages.
Turn known confirmation formats into explicit fields after selecting the correct message, preserving the original message identity for audit.
Email retrieval should narrow the result before content reaches the model. Direction, label, sender, recipient, time, and thread context reduce both token use and accidental disclosure.
Retrieve a bounded result set instead of loading an entire mailbox. Use server-side filters whenever the caller already knows the direction or message category.
Follow Message-ID, In-Reply-To, and References relationships to present a conversation rather than isolated messages.
Turn known confirmation formats into explicit fields after selecting the correct message, preserving the original message identity for audit.
Start with inbound direction, a useful automatic label, and a bounded result limit.
Use sender, subject, or relevant content terms to identify candidate messages without sending everything to the agent.
Retrieve the selected message and its conversation context only when the task needs it.
Expose the code, link, attachment, or structured field needed by the next step and retain the message ID for traceability.
mails inbox --direction inbound --label code --limit 5Incoming messages can be classified into practical categories such as verification code, newsletter, notification, or personal. These labels reduce the first search space and are available as explicit filters.
Classification should remain inspectable. A label can accelerate retrieval, but a critical workflow should still validate sender, recipient, timing, and message content before taking an irreversible action.
code label for verification workflows.notification to separate automated status mail from human replies.| Data layer | Purpose | Recommended handling |
|---|---|---|
| Mailbox metadata | Filtering, ordering, status, and references | Keep scoped to the mailbox and index only fields needed for retrieval. |
| Raw message | Parsing fidelity and attachment access | Store in the email system with explicit retention, not in prompts or analytics. |
| Derived labels | Fast triage and tool filtering | Treat as hints that can be reviewed or recomputed. |
| Agent result | Code, link, summary, or structured field | Return the minimum value required by the workflow. |
| Operational telemetry | Latency, errors, and usage | Avoid mailbox addresses, bodies, secrets, and raw headers. |
Product behavior is verified against the mails0 source and documentation. External comparisons link to official vendor documentation checked on 2026-08-15.
Yes. The search surface can query indexed message content along with useful metadata. Keep result limits bounded and retrieve full content only when the task requires it.
mails0 uses standard message identifiers and reply-reference headers to associate messages with a thread. Forwarded or malformed mail can still require application-specific handling.
The current labels include code, newsletter, notification, and personal. They are intended as practical retrieval filters rather than irreversible classifications.
Yes, when its mailbox scope and deployment permit the attachment operation. Validate content type and size before passing attachment data into another tool.
Start with a receive-only temporary mailbox. Move to a permanent identity or self-hosted deployment only after the workflow reaches a real email value event.