diff options
author | Quentin <quentin@dufour.io> | 2024-01-15 07:07:06 +0000 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2024-01-15 07:07:06 +0000 |
commit | 55e26d24a08519ded6a6898453dcd6db287f45c8 (patch) | |
tree | 074d9f8dbc161d2aa8f59be26826b40c09d3d658 /src/imap/mail_view.rs | |
parent | d49a2355f71fe555a67a815c31800f901a0d0a71 (diff) | |
parent | 81bfed3b7df354148f284ed4e3708c1a086d6e58 (diff) | |
download | aerogramme-55e26d24a08519ded6a6898453dcd6db287f45c8.tar.gz aerogramme-55e26d24a08519ded6a6898453dcd6db287f45c8.zip |
Merge pull request 'CONDSTORE' (#71) from feat/condstore-try-2 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/aerogramme/pulls/71
Diffstat (limited to 'src/imap/mail_view.rs')
-rw-r--r-- | src/imap/mail_view.rs | 5 |
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 { |