0
Fork 0
mirror of https://github.com/oblien/openship.git synced 2026-11-18 06:55:56 +00:00
openship/apps/email/client/components/context
Santhi Prakash e5e095b9b8 fix(email): route bin/trash action through IMAP delete instead of labels
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/openship#429
History 2026-08-05 02:34:44 +00:00
..
command-palette-context.tsx adding email support 2026-05-25 03:53:52 +03:00
label-sidebar-context.tsx adding email support 2026-05-25 03:53:52 +03:00
loading-context.tsx adding email support 2026-05-25 03:53:52 +03:00
sidebar-context.tsx adding email support 2026-05-25 03:53:52 +03:00
thread-context.tsx fix(email): route bin/trash action through IMAP delete instead of labels 2026-08-05 02:34:44 +00:00