Skip to content

feat(tools/mail-source/imap): land concrete CLI wiring for the IMAP stub #303

Closed

Description

@potiuk

The IMAP mail-source adapter is currently a documentation stub — the contract is defined but no executable lands the actual operations. Land the concrete CLI per tools/mail-source/imap/README.md.

Operations to implement (per the mail-source contract):

  • list_recent_threads(list, since) — IMAP SEARCH SINCE <date> against the configured folder
  • read_thread(thread_id) — fetch by Message-ID + walk References: / In-Reply-To: chain
  • list_drafts(thread_id) — list Drafts folder filtered to thread
  • list_sent_since(thread_id, since) — search Sent folder
  • create_draft(thread_id, body) — APPEND to Drafts with the threading headers from tools/gmail/threading.md (the threading rule is shared across backends)
  • thread_url(thread_id) — build archive deep-link (Hyperkitty / PonyMail / Pipermail) per the adopter's public archive, or fall back to imap://

Why: Many projects run on corporate IMAP (Office 365, Fastmail, self-hosted Dovecot, Cyrus) — Gmail-only forecloses those adopters. An IMAP backend is also the natural choice for shared role mailboxes (e.g. [email protected]) that aren't on Gmail.

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. Kaap10 commented on Nov 15, 2026

    @Kaap10
    Member

    The concrete IMAP CLI operations and test suite were merged in PR #1466 (commit 3c86798). Closing this issue as completed.

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:platformenhancementfamily:cifamily:docsfamily:toolsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions