mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
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:
committed by
holger krekel
parent
7da69a4644
commit
4f78e2e14e
@@ -120,7 +120,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int
|
|||||||
Some(watch_folder) => {
|
Some(watch_folder) => {
|
||||||
// connect and fake idle if unable to connect
|
// connect and fake idle if unable to connect
|
||||||
if let Err(err) = connection.connect_configured(&ctx).await {
|
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;
|
return connection.fake_idle(&ctx, None).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user