Migration implementation (part 1)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "imap"
|
||||
version = "0.14.1"
|
||||
version = "0.15.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user