mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
fix(imap): reset new_mail if folder is ignored
This prevents skipping IDLE in infinite loop if folder is not fetched. This happens on the INBOX when OnlyFetchMvbox setting is enabled.
This commit is contained in:
@@ -540,6 +540,7 @@ impl Imap {
|
||||
) -> Result<bool> {
|
||||
if should_ignore_folder(context, folder, folder_meaning).await? {
|
||||
info!(context, "Not fetching from {folder:?}.");
|
||||
session.new_mail = false;
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user