aboutsummaryrefslogtreecommitdiff
path: root/src/uidindex.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-24 10:27:26 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-24 10:28:11 +0200
commit22d0f111734e9fc5c5452e8ce3c452545b76c5d8 (patch)
tree862ebd4a833c544afa96c05419a7953e649799d6 /src/uidindex.rs
parent8a0df56cde2bfed40514b7a43405cf25848b7568 (diff)
downloadaerogramme-22d0f111734e9fc5c5452e8ce3c452545b76c5d8.tar.gz
aerogramme-22d0f111734e9fc5c5452e8ce3c452545b76c5d8.zip
Implement Recent in Select
Diffstat (limited to 'src/uidindex.rs')
-rw-r--r--src/uidindex.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uidindex.rs b/src/uidindex.rs
index f53d770..9b85238 100644
--- a/src/uidindex.rs
+++ b/src/uidindex.rs
@@ -182,6 +182,9 @@ impl FlagIndex {
self.0.get_mut(flag).and_then(|set| set.remove(&uid));
});
}
+ pub fn get(&self, f: &Flag) -> Option<&OrdSet<ImapUid>> {
+ self.0.get(f)
+ }
}
// ---- CUSTOM SERIALIZATION AND DESERIALIZATION ----