Skip to content

Mail threads: group back-and-forth between two users #270

Description

@iduartgomez

Feature request

Group messages exchanged between two identities into a conversation thread instead of showing each message as a standalone inbox entry.

Motivation

Today every received/sent message is a flat list item. A reply to a reply has no visible relationship to the original. For a 1:1 back-and-forth between two users, the inbox should collapse the exchange into a single thread the user can expand.

Scope (proposal)

  • Detect related messages between the same two participants (sender ↔ recipient pair) and group them.
  • Threading key: needs a stable conversation identifier. Options:
    • subject-normalization (strip Re: prefixes) + participant pair, or
    • an explicit in_reply_to / thread_id field carried in the encrypted message payload (cleaner, requires a message-schema addition).
  • UI: thread shows as one row; expanding reveals the ordered message list; reply stays within the thread.
  • Sent + received messages must interleave in chronological order within a thread.

Open questions

  • Schema change vs. heuristic grouping. A thread_id in the message body is more robust but touches the inbox message format (ui/src/inbox.rs, common/).
  • How threads interact with the Quarantine folder.

Acceptance

  • Two identities exchanging N messages render as one expandable thread.
  • Replies attach to the existing thread, not a new entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions