aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mailbox_view.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-13 11:32:47 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-13 11:32:47 +0200
commit70e0da90055039710856ea03b9022c2e5a687eaf (patch)
treeae84c3072c58a72602494eaa9d5cb649bc5bf65c /src/imap/mailbox_view.rs
parentfaca15f164c8e2860d27144f75f2dee05742ec6d (diff)
downloadaerogramme-70e0da90055039710856ea03b9022c2e5a687eaf.tar.gz
aerogramme-70e0da90055039710856ea03b9022c2e5a687eaf.zip
small fixes
Diffstat (limited to 'src/imap/mailbox_view.rs')
-rw-r--r--src/imap/mailbox_view.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs
index 371bc50..f384a79 100644
--- a/src/imap/mailbox_view.rs
+++ b/src/imap/mailbox_view.rs
@@ -252,7 +252,7 @@ impl MailboxView {
let mut ret = vec![];
for (i, uid, uuid, meta, body) in mails {
- let mut attributes = vec![MessageAttribute::Uid(uid)];
+ let mut attributes = vec![];
let (_uid2, flags) = self
.known_state
@@ -270,7 +270,7 @@ impl MailboxView {
for attr in fetch_attrs.iter() {
match attr {
- FetchAttribute::Uid => (),
+ FetchAttribute::Uid => attributes.push(MessageAttribute::Uid(uid)),
FetchAttribute::Flags => {
attributes.push(MessageAttribute::Flags(
flags.iter().filter_map(|f| string_to_flag(f)).collect(),