imap: create message_sequence cache

Close #45 (hopefully)
async
Manos Pitsidianakis 2020-07-06 11:38:15 +03:00
parent f8b84a192c
commit de201b5d6c
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 0 deletions

View File

@ -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(