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); } };