fix recovering offline/lost connection situations

This commit is contained in:
holger krekel
2020-10-10 16:21:10 +02:00
committed by link2xt
parent be88b946b6
commit 48e1f53826
2 changed files with 3 additions and 2 deletions

View File

@@ -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