email-via-mail-system

Map filesystem-first mailbox headers to future email transport semantics.

18|3|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/igamenovoer/houmao --skill email-via-mail-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-via-mail-system
Source: https://github.com/igamenovoer/houmao/tree/main/openspec/changes/archive/2026-03-12-add-agent-mailbox-protocol/skills/email-via-mail-system
Command: npx skills add https://github.com/igamenovoer/houmao --skill email-via-mail-system

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you define how a filesystem-first mailbox protocol should translate into a future true email transport while preserving canonical threading, ancestry, and attachment metadata.

Core Features & Use Cases

  • Header mapping guidance: Maps canonical fields (message_id, in_reply_to, references, thread_id) onto email headers (Message-ID, In-Reply-To, References, X-Agent-Thread-ID) using explicit rules.
  • Compatibility checks for future adapters: Guides use of reserved environment variable names and clarifies that AGENTSYS_MAILBOX_EMAIL_* bindings are reserved, not guaranteed to be populated by the current runtime.
  • Round-trip semantic preservation: Ensures true-email fields act as an adaptation layer so canonical mailbox semantics remain the source of truth, including Markdown-compatible bodies and attachment reference metadata.

Quick Start

Ask the AI to verify your proposed future mail-system adapter against the exact header mapping and guardrails so it remains semantically compatible with the canonical mailbox protocol.

Frequently Asked Questions about email-via-mail-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map mailbox protocol headers to true email transport fields?

To map mailbox protocol headers to true email transport fields, you map canonical fields like message_id and thread_id onto standard email headers such as Message-ID, In-Reply-To, References, and X-Agent-Thread-ID using explicit rules. This ensures canonical threading and ancestry are preserved during the adaptation.

What environment variables are reserved for future email adapter compatibility?

The AGENTSYS_MAILBOX_EMAIL_* environment variable names are explicitly reserved for future email adapter compatibility. You must treat these bindings as compatibility placeholders, recognizing they are not guaranteed to be populated by the current runtime environment.

How do I preserve canonical reply ancestry when switching from a filesystem mailbox to email?

To preserve canonical reply ancestry when switching to email, you must explicitly maintain Message-ID, In-Reply-To, and References headers alongside explicit thread_id protocol metadata. This guarantees the true-email fields act as an adaptation layer without losing the canonical source of truth.

Does a filesystem-first mailbox protocol support round-trip semantic preservation for true email?

Yes, a filesystem-first mailbox protocol supports round-trip semantic preservation by ensuring true-email fields act purely as an adaptation layer. This approach keeps canonical mailbox semantics as the source of truth, maintaining Markdown-compatible bodies and attachment reference metadata across the translation.

When should I not use true email headers as the canonical source for message threading?

You should not use true email headers as the canonical source for message threading when designing a future adapter. Canonical mailbox semantics must remain the source of truth, with email headers serving only as an adaptation layer to prevent losing identity or threading data.

What is the best way to verify a future mail-system adapter for semantic compatibility?

The best way to verify a future mail-system adapter is to check it against exact header mapping rules and guardrails. This ensures the adapter remains semantically compatible with the canonical mailbox protocol, preserving message identity, threading, and attachment metadata.