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

@@ -346,9 +346,3 @@ impl JmapConfig {
jmap
}
}
impl ParseValue for SpecialUse {
fn parse_value(value: &str) -> Result<Self, String> {
SpecialUse::parse(value).ok_or_else(|| format!("Unknown folder role {:?}", value))
}
}

View File

@@ -13,7 +13,7 @@ use calcard::common::timezone::Tz;
use config::{
groupware::GroupwareConfig,
imap::ImapConfig,
jmap::settings::{JmapConfig, SpecialUse},
jmap::settings::JmapConfig,
network::Network,
scripts::Scripting,
smtp::{
@@ -40,7 +40,7 @@ use std::{
use tinyvec::TinyVec;
use tokio::sync::{Notify, Semaphore, mpsc};
use tokio_rustls::TlsConnector;
use types::acl::AclGrant;
use types::{acl::AclGrant, special_use::SpecialUse};
use utils::{
cache::{Cache, CacheItemWeight, CacheWithTtl},
snowflake::SnowflakeIdGenerator,