aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mailbox_view.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-09 16:53:32 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-09 16:53:32 +0100
commit5dfa02e381154c03adee33262e247797d9a2f8ff (patch)
tree3c9086d929049e54654ccdba7a6b08ab7e9f6e7b /src/imap/mailbox_view.rs
parentd49a2355f71fe555a67a815c31800f901a0d0a71 (diff)
downloadaerogramme-5dfa02e381154c03adee33262e247797d9a2f8ff.tar.gz
aerogramme-5dfa02e381154c03adee33262e247797d9a2f8ff.zip
Disable UNSEEN again as it was a volunteer decision to not implement it
Diffstat (limited to 'src/imap/mailbox_view.rs')
-rw-r--r--src/imap/mailbox_view.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs
index 513567f..e9f85a6 100644
--- a/src/imap/mailbox_view.rs
+++ b/src/imap/mailbox_view.rs
@@ -130,8 +130,8 @@ impl MailboxView {
data.extend(self.flags_status()?.into_iter());
data.push(self.uidvalidity_status()?);
data.push(self.uidnext_status()?);
- self.unseen_first_status()?
- .map(|unseen_status| data.push(unseen_status));
+ /*self.unseen_first_status()?
+ .map(|unseen_status| data.push(unseen_status));*/
Ok(data)
}
@@ -403,6 +403,7 @@ impl MailboxView {
Ok(Body::Data(Data::Recent(self.recent()?)))
}
+ #[allow(dead_code)]
fn unseen_first_status(&self) -> Result<Option<Body<'static>>> {
Ok(self
.unseen_first()?
@@ -412,6 +413,7 @@ impl MailboxView {
.transpose()?)
}
+ #[allow(dead_code)]
fn unseen_first(&self) -> Result<Option<NonZeroU32>> {
Ok(self
.0