imap: create message_sequence cache

Close #45 (hopefully)
This commit is contained in:
Manos Pitsidianakis 2020-07-06 11:38:15 +03:00
parent f8b84a192c
commit de201b5d6c
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

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(