From 506f47e1550740d778ced12dca8094d13471a9fa Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Tue, 6 Oct 2026 23:31:20 +0200 Subject: [PATCH] fix: show the translated message when no Archive folder can be created #1176 --- components/mail/mail-app.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/mail/mail-app.tsx b/components/mail/mail-app.tsx index 81bd343a2..c145bb99a 100644 --- a/components/mail/mail-app.tsx +++ b/components/mail/mail-app.tsx @@ -2420,6 +2420,10 @@ export function MailApp({ linkSegments: routeSegments }: MailAppProps = {}) { void refreshMailboxes(); } catch (error) { console.error("Failed to archive email:", error); + if (error instanceof ArchiveMailboxNotFoundError) { + toast.error(t('email_viewer.archive_mailbox_not_found')); + return; + } toast.error(t('notifications.error_archiving'), error instanceof Error ? error.message : undefined); } };