mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
fix it, maybe
This commit is contained in:
@@ -563,10 +563,6 @@ impl Imap {
|
||||
.select_with_uidvalidity(context, folder)
|
||||
.await
|
||||
.with_context(|| format!("Failed to select folder {folder:?}"))?;
|
||||
if !folder_exists {
|
||||
info!(context, "dbg 4");
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
if !session.new_mail {
|
||||
info!(context, "No new emails in folder {folder:?}.");
|
||||
@@ -575,6 +571,11 @@ impl Imap {
|
||||
info!(context, "Setting new_mail to False");
|
||||
session.new_mail = false;
|
||||
|
||||
if !folder_exists {
|
||||
info!(context, "dbg 4");
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
let mut read_cnt = 0;
|
||||
loop {
|
||||
let (n, fetch_more) = self
|
||||
|
||||
Reference in New Issue
Block a user