JMAP for Calendars implementation (closes #1947)

This commit is contained in:
mdecimus
2025-10-10 19:40:58 +02:00
parent b84e3e85dd
commit 5a65f091fc
45 changed files with 1220 additions and 870 deletions

View File

@@ -64,7 +64,6 @@ pub enum MailboxField {
#[repr(u8)]
pub enum SieveField {
Name,
IsActive,
Ids,
Archive,
}
@@ -86,6 +85,9 @@ pub enum PrincipalField {
Archive,
EncryptionKeys,
ParticipantIdentities,
DefaultCalendarId,
DefaultAddressBookId,
ActiveScriptId,
}
impl From<ContactField> for u8 {
@@ -148,7 +150,6 @@ impl From<SieveField> for u8 {
fn from(value: SieveField) -> Self {
match value {
SieveField::Name => 13,
SieveField::IsActive => 0,
SieveField::Ids => 84,
SieveField::Archive => ARCHIVE_FIELD,
}
@@ -173,6 +174,9 @@ impl From<PrincipalField> for u8 {
match value {
PrincipalField::ParticipantIdentities => 45,
PrincipalField::EncryptionKeys => 46,
PrincipalField::DefaultCalendarId => 47,
PrincipalField::DefaultAddressBookId => 48,
PrincipalField::ActiveScriptId => 49,
PrincipalField::Archive => ARCHIVE_FIELD,
}
}