aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mail_view.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 18:08:44 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 18:08:44 +0100
commitf5b73182f25dfdcdc34f7b3c6664c5112ce93c1c (patch)
treea7f30a470d1aa057121a824e0557e528c3751518 /src/imap/mail_view.rs
parent9cec7803d28617f1bfd1ac1621c2eda9582201d4 (diff)
downloadaerogramme-f5b73182f25dfdcdc34f7b3c6664c5112ce93c1c.tar.gz
aerogramme-f5b73182f25dfdcdc34f7b3c6664c5112ce93c1c.zip
Fetch now support MODSEQ data item
Diffstat (limited to 'src/imap/mail_view.rs')
-rw-r--r--src/imap/mail_view.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/imap/mail_view.rs b/src/imap/mail_view.rs
index eeb6b4b..a8db733 100644
--- a/src/imap/mail_view.rs
+++ b/src/imap/mail_view.rs
@@ -90,6 +90,7 @@ impl<'a> MailView<'a> {
Ok(body)
}
MessageDataItemName::InternalDate => self.internal_date(),
+ MessageDataItemName::ModSeq => Ok(self.modseq()),
})
.collect::<Result<Vec<_>, _>>()?;
@@ -252,6 +253,10 @@ impl<'a> MailView<'a> {
.ok_or(anyhow!("Unable to parse internal date"))?;
Ok(MessageDataItem::InternalDate(DateTime::unvalidated(dt)))
}
+
+ fn modseq(&self) -> MessageDataItem<'static> {
+ MessageDataItem::ModSeq(self.in_idx.modseq)
+ }
}
pub enum SeenFlag {