Skip to content

Fix reply recipients for sent messages - #309

Merged
huacnlee merged 1 commit into
huacnlee:mainfrom
klaudworks:fix/sent-reply-recipients
Sep 30, 2026
Merged

huacnlee merged 1 commit into
huacnlee:mainfrom
klaudworks:fix/sent-reply-recipients

Conversation

@klaudworks

@klaudworks klaudworks commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fix Reply and Reply All when following up on a message you sent. Previously Reply addressed the author (yourself); Reply All did the same and put the original To recipients in Cc, while dropping the original Cc list.

  • For messages from the draft-owning account or its known aliases, Reply keeps the original non-self To recipients; Reply All also keeps the original Cc recipients.
  • Incoming replies still honor Reply-To. Incoming Reply All now includes the original Cc list as well as the other To recipients.
  • Exclude the owning account's identities and deduplicate addresses case-insensitively across To/Cc. Another connected mailbox remains a legitimate recipient. Never copy Bcc.
  • Prefer the original sender identity for a sent-message follow-up.

Recipient selection lives in the shared compose recipient rules, using existing account and send-as data. Based on current upstream main (af8a7ae); no backend API change.

Verification

  • Four synthetic Qt regression cases fail on upstream and pass with the fix: sent Reply, sent Reply All, known alias in a merged-account context, and incoming Cc retention/deduplication.
  • All make validate stages pass: 566 Rust unit tests, 33 CLI tests, remaining Rust integration tests, JavaScript and shell/source checks, 1,079 main QML tests plus Outlook/sidebar suites, standalone composition, QML lint, plugin validation, and whitespace checks. A workstation server restart interrupted the standalone link after make test passed; make -o test validate completed the remaining stages successfully.
  • Socket fixtures ran in an isolated network/mount namespace to prevent unrelated workstation probes reaching synthetic servers. Screenshot captures passed for all four states before and after. No live mail was sent.

Security

PASS — scoped draft-recipient boundary. Sender/recipient headers pass through existing contact normalization before entering editable draft fields; tests exercise CR/LF removal, Bcc omission, account ownership and cross-field deduplication. The change adds no automatic send or new credential/network path. This verdict covers recipient selection, not a broader transport audit.

Before / after

Synthetic production Qt ComposeView captures with production standalone controls, Solarized Light, Qt 6.11.2 software rendering, scale 1, and identical 900 × 600 composer dimensions. agent-browser captured the labeled evidence pages at 940 × 700 and uploaded these PNGs through this PR's attachment input. These are component fixtures, not live-mail desktop screenshots; all addresses and messages are synthetic. The only surrounding page content is the evidence label.

Reply to a sent message

The original recipient replaces your own address in To.

Before After
Before: Reply addresses Bob himself After: Reply addresses the original recipient

Reply All to a sent message

The original To recipient stays in To, the original Cc recipient is retained, and your own address is excluded.

Before After
Before: self in To and original recipient in Cc After: original To and Cc recipients restored

Follow-up from a known alias

The alias is recognized as yours and used as the preferred From identity; the original recipient goes in To.

Before After
Before: reply goes to the alias from the default identity After: reply goes to the recipient from the original alias

Incoming Reply All

The original Cc recipient is now included alongside the other To recipient. Another connected mailbox remains a recipient.

Before After
Before: original Cc omitted After: original Cc included

Release Notes

  • Reply to your own sent messages addresses the original recipients instead of yourself.
  • Reply All retains original Cc recipients and excludes your account's known aliases without duplicate recipients.

@klaudworks
klaudworks marked this pull request as ready for review September 30, 2026 09:10
@huacnlee
huacnlee merged commit ccb1e73 into huacnlee:main Sep 30, 2026
14 checks passed
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.

2 participants