From 66867be369d66d5a61e91fc1aaf67ecb63b3e6d6 Mon Sep 17 00:00:00 2001 From: Maurus Decimus <11444311+mdecimus@users.noreply.github.com> Date: Mon, 4 May 2026 18:52:29 +0200 Subject: [PATCH] Fix JMAP `AddressBook/query` fetches wrong resources --- CHANGELOG.md | 4 +++- crates/jmap/src/contact/query.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35849f6a..a490f99d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,9 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If - `mail-parser` panic with certain messages containing corrupted attachments. - Pagination by anchor for queued messages, tasks and metrics. - Spam filter: Use original instead of rewritten `RCPT` on checks. -- JMAP references in nested objects not resolved. +- JMAP: + - References in nested objects not resolved. + - `AddressBook/query` fetches wrong resources. - Import tool fails to restore registry entries. - FDB: Allow multiple FoundationDB instances in the same process. - Autoconfig: Return `%EMAILADDRESS%` when no email address is provided. diff --git a/crates/jmap/src/contact/query.rs b/crates/jmap/src/contact/query.rs index 5c6928d0..840629a5 100644 --- a/crates/jmap/src/contact/query.rs +++ b/crates/jmap/src/contact/query.rs @@ -347,7 +347,7 @@ impl ContactCardQuery for Server { .fetch_dav_resources( access_token.account_id(), account_id, - SyncCollection::Calendar, + SyncCollection::AddressBook, ) .await?;