Repository navigation
fix(email): route bin/trash action through IMAP delete instead of labels - #430
Merged
Hydralerne merged 3 commits intoSep 16, 2026
Conversation
The trash icon and "Move to Bin" flow was calling mail.modifyLabels, which only adds/removes IMAP keywords. On real-mailbox servers like Dovecot, this leaves the message in INBOX with a visible TRASH tag instead of moving it to Trash. Use the existing trpc.mail.bulkDelete path (deleteThreads) which does messageMove(..., 'Trash') when the source is not Trash and permanently deletes when it is. Pass the source folder along in the two delete entry points so the IMAP driver looks in the right mailbox. Fixes oblien#429
santhiprakash
force-pushed
the
fix/email-bin-imap-move-429
branch
from
August 5, 2026 02:36
c8f0c52 to
e5e095b
Compare
Hydralerne
changed the base branch from
main
to
feat/bugfix-batch-2026-09-16
September 16, 2026 02:30
Hydralerne
merged commit Sep 16, 2026
5dbd9b2
into
oblien:feat/bugfix-batch-2026-09-16
8 checks passed
This was referenced Sep 16, 2026
Closed
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deleted inbox messages were being given an IMAP keyword instead of being moved to Trash. This routes the bin action through the existing delete handler, preserves the selected mailbox in optimistic, context-menu and keyboard deletion, and supports permanent deletion from Bin.
Adapted to the current platform architecture while preserving the original contribution. Targets the bug integration branch for #892; addresses the deletion portion of #429. The separate automatic inbox refresh request remains open.
Validation: four client → tRPC → IMAP driver regressions pass (three fail on main), all 64 mail server tests pass, server TypeScript passes, and the mail client production build passes. The regression fixture substitutes the IMAP connection; it is not a live mailbox test.