Skip to content

feat(tools/mail-source/mbox): land concrete CLI wiring for the mbox stub #304

Closed

Description

@potiuk

The mbox / local-archive mail-source adapter is currently a documentation stub. Land the concrete CLI per tools/mail-source/mbox/README.md. Read-only by construction — no drafts, no writes to the archive file.

Operations to implement:

  • list_recent_threads(list, since) — parse mbox, group messages by References: / In-Reply-To:, filter by Date:
  • read_thread(thread_id) — return full message history for the thread root
  • thread_url(thread_id) — build archive deep-link if the adopter has a public archive (PonyMail / Hyperkitty / Pipermail), else file://

Format sniffing should accept: a single mbox file, a Maildir/ directory, or a directory of .eml files.

Why:

  • Forensics / late triage — the inbox is gone but a snapshot exists.
  • Air-gapped triage — a thumbdrive snapshot of security@ for an audit window.
  • Compliance / discovery exports — a regulator-requested mbox export, processed through the same skills without touching live credentials.

Reference:

Activity

  1. added
    enhancement
    good first issue
    capability:platform
    on May 26, 2026
  2. added
    family:setup
    family:docs
    contract:mail-source
    and removed
    family:setup
    family:docs
    contract:mail-source
    on Oct 5, 2026
  3. added
    family:docs
    family:ci
    on Oct 5, 2026
  4. Harshall25 commented on Oct 6, 2026

    @Harshall25

    Hi @potiuk is it already addressed ? If it’s still available, I’d like to work on this one.

  5. potiuk commented on Oct 6, 2026

    @potiuk
    MemberAuthor

    Sure. Go ahead.

  6. sharpca commented on Oct 25, 2026

    @sharpca
    Contributor

    Taking this one. The read side lands in tools/maildir/, which its own README already names as the vendor home for this local-files backend (and which already carries the outbound half). Three commands — maildir-source-threads, maildir-source-read, maildir-source-thread-url — over an mbox file, a Maildir, or a .eml directory, sniffed per call.

    Two decisions worth flagging up front: a thread comes back whole when any of its messages falls inside the --since-days window (a report filed months ago whose last reply is recent is still active, and trimming it would hide the original report from the import skills); and thread_url refuses to invent a public address — without an adopter-declared --archive-template it returns a file:// link to the snapshot.

    PR follows.

  7. added 5 commits that reference this issue on Oct 30, 2026
    67cee35
    7e609f0
    57dbf21
    ec419d1
    a80c32d
  8. added
    family:security
    family:setup
    family:issue
    capability:stats
    contract:mail-source
    contract:mail-create
    substrate:analytics
    on Oct 31, 2026
  9. added a commit that references this issue on Oct 31, 2026
    2372cf0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    capability:platformcapability:statscontract:mail-createcontract:mail-sourceenhancementfamily:cifamily:docsfamily:issuefamily:securityfamily:setupfamily:toolsgood first issuesubstrate:analytics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions