Skip to content

Commit 5792d7b

Browse files
committed
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.
1 parent 5fa7cff commit 5792d7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/imap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ impl Imap {
540540
) -> Result<bool> {
541541
if should_ignore_folder(context, folder, folder_meaning).await? {
542542
info!(context, "Not fetching from {folder:?}.");
543+
session.new_mail = false;
543544
return Ok(false);
544545
}
545546

0 commit comments

Comments
 (0)