Skip to content

Show the recipient on sent rows and replied conversations - #295

Merged
g0shed merged 3 commits into
mainfrom
show-recipient-when-sent
Dec 3, 2026
Merged

g0shed merged 3 commits into
mainfrom
show-recipient-when-sent

Conversation

@g0shed

@g0shed g0shed commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

The message list now shows who a message went to when you sent it, instead of your own name.

  • In Sent, each row reads "To Ana Lima", with Ana's photo, color and VIP star, and the address beside the name is hers.
  • With conversation grouping on, a conversation whose newest message is your reply reads "To ", so a replied conversation keeps the name you recognise.
  • The spoken label of the row follows the same person.

How it works: the store fills ThreadSummary.recipient (the field Follow Up and Outbox rows already use) when a row's newest message is one the account sent. A message counts as sent when it sits in a Sent mailbox, which covers send-as aliases, or when its sender is the account address. The "To {recipients}" text is the string Outbox rows already use, so it is translated in every language.

Rows listed from the server (browsing a Sent folder, search, smart mailboxes) take the same rule from each hit's own Sent role.

Cost: the thread list query gains one correlated subquery per row, through the messages_by_thread index like the three it already has for the preview, protection and security. Message rows gain one EXISTS on the message's primary key. The recipients JSON is read only for rows that qualify. The query plan tests still pass.

Not covered: a conversation whose newest message is yours but has no recipient (a Bcc-only send) keeps your name.

Fixes #276
Fixes #277

The list showed the person's own name on every sent row. The store now
fills the recipient for rows whose newest message the account sent.
@g0shed
g0shed merged commit 1ac08cb into main Dec 3, 2026
28 checks passed
@g0shed
g0shed deleted the show-recipient-when-sent branch December 3, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show recipient information in listview, especially when conversation grouping is activated Show recipient in Sent folder instead of sender

1 participant