aboutsummaryrefslogtreecommitdiff
path: root/src/mailbox.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-27 11:40:45 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-27 11:40:45 +0200
commitd3f8a6627ca13a020bac9936d1f40a18239b6d6d (patch)
treeb08afa6104ca86296b95850b5cedd0fcdf65bf64 /src/mailbox.rs
parent22d0f111734e9fc5c5452e8ce3c452545b76c5d8 (diff)
downloadaerogramme-d3f8a6627ca13a020bac9936d1f40a18239b6d6d.tar.gz
aerogramme-d3f8a6627ca13a020bac9936d1f40a18239b6d6d.zip
Add support for flags
Diffstat (limited to 'src/mailbox.rs')
-rw-r--r--src/mailbox.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mailbox.rs b/src/mailbox.rs
index b8921ec..7945cba 100644
--- a/src/mailbox.rs
+++ b/src/mailbox.rs
@@ -15,6 +15,7 @@ pub struct Summary<'a> {
pub next: ImapUid,
pub exists: u32,
pub recent: u32,
+ pub flags: FlagIter<'a>,
pub unseen: Option<&'a ImapUid>,
}
impl std::fmt::Display for Summary<'_> {
@@ -69,6 +70,7 @@ impl Mailbox {
next: state.uidnext,
exists: u32::try_from(state.idx_by_uid.len())?,
recent: u32::try_from(recent)?,
+ flags: state.idx_by_flag.flags(),
unseen,
});
}