Do not show an error on IMAP connection failure

It is annoying as it happens every time the server is rebooted.
This commit is contained in:
Alexander Krotov
2020-07-11 20:39:34 +03:00
committed by holger krekel
parent 7da69a4644
commit 4f78e2e14e

View File

@@ -120,7 +120,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int
Some(watch_folder) => {
// connect and fake idle if unable to connect
if let Err(err) = connection.connect_configured(&ctx).await {
error!(ctx, "imap connection failed: {}", err);
warn!(ctx, "imap connection failed: {}", err);
return connection.fake_idle(&ctx, None).await;
}