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/98pull/223/head
parent
f8623d4b2c
commit
b92a80a23a
|
@ -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];
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue