diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-18 14:54:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-18 14:54:48 +0200 |
commit | c8be884ad5230b531dfb54ee978e19d4eafe29a2 (patch) | |
tree | 8650943282946c051b48b91cd450d0d010a7dc1d /src/uidindex.rs | |
parent | cfc02ba3685c481ebb71ffeddc970998af987de9 (diff) | |
download | aerogramme-c8be884ad5230b531dfb54ee978e19d4eafe29a2.tar.gz aerogramme-c8be884ad5230b531dfb54ee978e19d4eafe29a2.zip |
sync() and push() seems to be working, todo checkpoint()
Diffstat (limited to 'src/uidindex.rs')
-rw-r--r-- | src/uidindex.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/uidindex.rs b/src/uidindex.rs index 600cf6a..1e30190 100644 --- a/src/uidindex.rs +++ b/src/uidindex.rs @@ -9,22 +9,22 @@ type ImapUidvalidity = u32; /// A Mail UUID is composed of two components: /// - a process identifier, 128 bits /// - a sequence number, 64 bits -#[derive(Clone, Copy, PartialOrd, Ord, PartialEq, Eq)] +#[derive(Clone, Copy, PartialOrd, Ord, PartialEq, Eq, Debug)] pub struct MailUuid(pub [u8; 24]); #[derive(Clone)] pub struct UidIndex { - mail_uid: OrdMap<MailUuid, ImapUid>, - mail_flags: OrdMap<MailUuid, Vec<String>>, + pub mail_uid: OrdMap<MailUuid, ImapUid>, + pub mail_flags: OrdMap<MailUuid, Vec<String>>, - mails_by_uid: OrdMap<ImapUid, MailUuid>, + pub mails_by_uid: OrdMap<ImapUid, MailUuid>, - uidvalidity: ImapUidvalidity, - uidnext: ImapUid, - internalseq: ImapUid, + pub uidvalidity: ImapUidvalidity, + pub uidnext: ImapUid, + pub internalseq: ImapUid, } -#[derive(Clone, Serialize, Deserialize)] +#[derive(Clone, Serialize, Deserialize, Debug)] pub enum UidIndexOp { MailAdd(MailUuid, ImapUid, Vec<String>), MailDel(MailUuid), |