attempt to fix #1589 -- if we trigger a reconnect we don't need to "error!" which shows a toast to the user.

the next reconnect will report if it can't connect.
This commit is contained in:
holger krekel
2020-06-12 11:57:38 +02:00
parent e03246d105
commit 1d34e1f27a

View File

@@ -109,7 +109,7 @@ async fn fetch(ctx: &Context, connection: &mut Imap) {
// fetch
if let Err(err) = connection.fetch(&ctx, &watch_folder).await {
connection.trigger_reconnect();
error!(ctx, "{}", err);
warn!(ctx, "{}", err);
}
}
None => {
@@ -131,7 +131,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int
// fetch
if let Err(err) = connection.fetch(&ctx, &watch_folder).await {
connection.trigger_reconnect();
error!(ctx, "{}", err);
warn!(ctx, "{}", err);
}
// idle
@@ -141,7 +141,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int
.await
.unwrap_or_else(|err| {
connection.trigger_reconnect();
error!(ctx, "{}", err);
warn!(ctx, "{}", err);
InterruptInfo::new(false, None)
})
} else {