melib/imap: resync even if UIDVALIDITY is missing from cache

I think this is related to #98 meli gets stuck on `set seen' for mail (threads) at random

https://git.meli.delivery/meli/meli/issues/98
pull/223/head
Manos Pitsidianakis 2023-06-04 20:43:53 +03:00
parent f8623d4b2c
commit b92a80a23a
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 5 additions and 5 deletions

View File

@ -101,12 +101,12 @@ impl ImapConnection {
.get(&mailbox_hash)
.cloned();
// 3. tag2 UID FETCH 1:<lastseenuid> FLAGS
if cached_uidvalidity.is_none() || cached_max_uid.is_none() {
return Ok(None);
}
//if cached_uidvalidity.is_none() || cached_max_uid.is_none() {
// return Ok(None);
//}
let current_uidvalidity: UID = cached_uidvalidity.unwrap();
let max_uid: UID = cached_max_uid.unwrap();
let current_uidvalidity: UID = cached_uidvalidity.unwrap_or(1);
let max_uid: UID = cached_max_uid.unwrap_or(1);
let (mailbox_path, mailbox_exists, unseen) = {
let f = &self.uid_store.mailboxes.lock().await[&mailbox_hash];
(