From de201b5d6c8adc56b55b96db46baa36ac999719c Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 6 Jul 2020 11:38:15 +0300 Subject: [PATCH] imap: create message_sequence cache Close #45 (hopefully) --- melib/src/backends/imap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/melib/src/backends/imap.rs b/melib/src/backends/imap.rs index 0ffd8590..ee748e7c 100644 --- a/melib/src/backends/imap.rs +++ b/melib/src/backends/imap.rs @@ -361,6 +361,7 @@ impl MailBackend for ImapType { } /* reselecting the same mailbox with EXAMINE prevents expunging it */ conn.examine_mailbox(mailbox_hash, &mut response, true)?; + conn.create_uid_msn_cache(mailbox_hash, 1)?; if examine_response.uidnext == 0 { /* UIDNEXT shouldn't be 0, since exists != 0 at this point */ conn.send_command(