From 70e0da90055039710856ea03b9022c2e5a687eaf Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 13 Jul 2022 11:32:47 +0200 Subject: small fixes --- src/imap/mailbox_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imap/mailbox_view.rs') 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(), -- cgit v1.2.3