- {t('accounts.folderSync.loadingMailboxFolders')}
+
+ {fetchProgress && fetchProgress.total > 0
+ ? `${t('accounts.folderSync.loadingMailboxFolders')} (${fetchProgress.examined}/${fetchProgress.total})`
+ : t('accounts.folderSync.loadingMailboxFolders')}
+
diff --git a/web/src/features/attachment/mailbox-popover.tsx b/web/src/features/attachment/mailbox-popover.tsx
index 646d140..6fe9968 100644
--- a/web/src/features/attachment/mailbox-popover.tsx
+++ b/web/src/features/attachment/mailbox-popover.tsx
@@ -181,7 +181,7 @@ export function MailboxPopover() {
const { data: activeMailboxes = [], isLoading: activeIsLoading } = useQuery({
queryKey: ['search-mailboxes', activeAccountId],
- queryFn: () => list_mailboxes(activeAccountId!, false),
+ queryFn: async () => (await list_mailboxes(activeAccountId!, false)).mailboxes,
enabled: !!activeAccountId,
});
diff --git a/web/src/features/search/mailbox-popover.tsx b/web/src/features/search/mailbox-popover.tsx
index 3349419..183f7a0 100644
--- a/web/src/features/search/mailbox-popover.tsx
+++ b/web/src/features/search/mailbox-popover.tsx
@@ -181,7 +181,7 @@ export function MailboxPopover() {
const { data: activeMailboxes = [], isLoading: activeIsLoading } = useQuery({
queryKey: ['search-mailboxes', activeAccountId],
- queryFn: () => list_mailboxes(activeAccountId!, false),
+ queryFn: async () => (await list_mailboxes(activeAccountId!, false)).mailboxes,
enabled: !!activeAccountId,
});