Skip to content

ReadThread: improve thread lookup beyond subject-based search #2

@cboone

Description

@cboone

Context

The ReadThread function in internal/client/email.go searches for thread emails by subject, which may return emails with the same subject from unrelated threads. While it filters by threadId client-side, this is inefficient for common subjects and the limit of 50 could truncate large threads.

Potential improvements

  • Explore Thread/get if available in the go-jmap library
  • Consider using JMAP threadId filter if the spec/library supports it
  • Document the limitation more prominently if no better approach exists

Origin

Identified during Copilot PR review of PR #1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions