diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-10 18:38:21 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-10 18:38:21 +0100 |
commit | f4cbf665496640f4ac7cf4ac63ab2beced674978 (patch) | |
tree | 1bf25a04be2f067271cad9ad48fc98633cd34dfb /src/imap/attributes.rs | |
parent | f5b73182f25dfdcdc34f7b3c6664c5112ce93c1c (diff) | |
download | aerogramme-f4cbf665496640f4ac7cf4ac63ab2beced674978.tar.gz aerogramme-f4cbf665496640f4ac7cf4ac63ab2beced674978.zip |
Fecth MODSEQ now enables the CONDSTORE capability
Diffstat (limited to 'src/imap/attributes.rs')
-rw-r--r-- | src/imap/attributes.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imap/attributes.rs b/src/imap/attributes.rs index cf7cb52..6cf52b5 100644 --- a/src/imap/attributes.rs +++ b/src/imap/attributes.rs @@ -34,6 +34,12 @@ impl AttributesProxy { Self { attrs: fetch_attrs } } + pub fn is_enabling_condstore(&self) -> bool { + self.attrs.iter().any(|x| { + matches!(x, MessageDataItemName::ModSeq) + }) + } + pub fn need_body(&self) -> bool { self.attrs.iter().any(|x| { match x { |