diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-24 10:27:26 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-06-24 10:28:11 +0200 |
commit | 22d0f111734e9fc5c5452e8ce3c452545b76c5d8 (patch) | |
tree | 862ebd4a833c544afa96c05419a7953e649799d6 /src/uidindex.rs | |
parent | 8a0df56cde2bfed40514b7a43405cf25848b7568 (diff) | |
download | aerogramme-22d0f111734e9fc5c5452e8ce3c452545b76c5d8.tar.gz aerogramme-22d0f111734e9fc5c5452e8ce3c452545b76c5d8.zip |
Implement Recent in Select
Diffstat (limited to 'src/uidindex.rs')
-rw-r--r-- | src/uidindex.rs | 3 |
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 ---- |