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