mirror of
https://github.com/chatmail/core.git
synced 2026-05-18 22:36:29 +03:00
fix recovering offline/lost connection situations
This commit is contained in:
@@ -131,7 +131,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int
|
||||
// connect and fake idle if unable to connect
|
||||
if let Err(err) = connection.connect_configured(&ctx).await {
|
||||
warn!(ctx, "imap connection failed: {}", err);
|
||||
return connection.fake_idle(&ctx, None).await;
|
||||
return connection.fake_idle(&ctx, Some(watch_folder)).await;
|
||||
}
|
||||
|
||||
// fetch
|
||||
|
||||
Reference in New Issue
Block a user