From c9eae3b3a1e4141f786c056982d261d77638f107 Mon Sep 17 00:00:00 2001 From: Max Hao Date: Thu, 18 Jun 2026 11:56:24 -0400 Subject: [PATCH] fix: update markAsSpam to fetch mailboxes with accountId --- lib/jmap/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jmap/client.ts b/lib/jmap/client.ts index 7440d54c..f67b8dde 100644 --- a/lib/jmap/client.ts +++ b/lib/jmap/client.ts @@ -1667,7 +1667,7 @@ export class JMAPClient implements IJMAPClient { async markAsSpam(emailId: string, accountId?: string, markAsRead?: boolean): Promise { const targetAccountId = accountId || this.accountId; - const mailboxes = await this.getMailboxes(); + const mailboxes = await this.getMailboxes(accountId); const junkMailbox = mailboxes.find(m => { if (accountId) { return m.role === 'junk' && m.accountId === accountId;