Migration implementation (part 1)

This commit is contained in:
mdecimus
2025-12-10 19:13:04 +01:00
parent efd1d86ff3
commit f1fe0345ef
86 changed files with 2553 additions and 356 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "imap"
version = "0.14.1"
version = "0.15.0"
edition = "2024"
[dependencies]

View File

@@ -176,6 +176,9 @@ impl<T: SessionStream> SessionData<T> {
SpecialUse::Archive => Some(Attribute::Archive),
SpecialUse::Sent => Some(Attribute::Sent),
SpecialUse::Important => Some(Attribute::Important),
SpecialUse::Memos => Some(Attribute::Memos),
SpecialUse::Scheduled => Some(Attribute::Scheduled),
SpecialUse::Snoozed => Some(Attribute::Snoozed),
_ => None,
},
total_messages: cache.in_mailbox(mailbox.document_id).count() as u64,

View File

@@ -329,6 +329,9 @@ fn attr_to_role(attr: Attribute) -> SpecialUse {
Attribute::Sent => SpecialUse::Sent,
Attribute::Trash => SpecialUse::Trash,
Attribute::Important => SpecialUse::Important,
Attribute::Memos => SpecialUse::Memos,
Attribute::Scheduled => SpecialUse::Scheduled,
Attribute::Snoozed => SpecialUse::Snoozed,
_ => SpecialUse::None,
}
}