JMAP protocol layer refactoring (part 2)

This commit is contained in:
mdecimus
2025-09-24 18:14:44 +02:00
parent 6c612f7e1c
commit a95010c42e
60 changed files with 2260 additions and 1747 deletions

View File

@@ -6,7 +6,7 @@
use super::object::Object;
use crate::object::{FromLegacy, Property, Value};
use common::{Server, config::jmap::settings::SpecialUse};
use common::Server;
use email::mailbox::Mailbox;
use store::{
SUBSPACE_BITMAP_TAG, SUBSPACE_BITMAP_TEXT, SUBSPACE_INDEXES, Serialize, U64_LEN, ValueKey,
@@ -16,7 +16,7 @@ use store::{
},
};
use trc::AddContext;
use types::{collection::Collection, field::Field};
use types::{collection::Collection, field::Field, special_use::SpecialUse};
use utils::config::utils::ParseValue;
pub(crate) async fn migrate_mailboxes(server: &Server, account_id: u32) -> trc::Result<u64> {

View File

@@ -144,7 +144,7 @@ impl FromLegacy for PushSubscription {
.map(|l| l.as_slice())
.unwrap_or_default()
.iter()
.filter_map(|v| v.as_string().and_then(|v| DataType::try_from(v).ok()))
.filter_map(|v| v.as_string().and_then(DataType::parse))
.collect(),
keys: convert_keys(legacy.get(&Property::Keys)),
}