mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Merge pull request #1606 from deltachat/fix1589
attempt to fix #1598 -- less chatty on errors
This commit is contained in:
@@ -109,7 +109,7 @@ async fn fetch(ctx: &Context, connection: &mut Imap) {
|
|||||||
// fetch
|
// fetch
|
||||||
if let Err(err) = connection.fetch(&ctx, &watch_folder).await {
|
if let Err(err) = connection.fetch(&ctx, &watch_folder).await {
|
||||||
connection.trigger_reconnect();
|
connection.trigger_reconnect();
|
||||||
error!(ctx, "{}", err);
|
warn!(ctx, "{}", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
@@ -131,7 +131,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int
|
|||||||
// fetch
|
// fetch
|
||||||
if let Err(err) = connection.fetch(&ctx, &watch_folder).await {
|
if let Err(err) = connection.fetch(&ctx, &watch_folder).await {
|
||||||
connection.trigger_reconnect();
|
connection.trigger_reconnect();
|
||||||
error!(ctx, "{}", err);
|
warn!(ctx, "{}", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
// idle
|
// idle
|
||||||
@@ -141,7 +141,7 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder: Config) -> Int
|
|||||||
.await
|
.await
|
||||||
.unwrap_or_else(|err| {
|
.unwrap_or_else(|err| {
|
||||||
connection.trigger_reconnect();
|
connection.trigger_reconnect();
|
||||||
error!(ctx, "{}", err);
|
warn!(ctx, "{}", err);
|
||||||
InterruptInfo::new(false, None)
|
InterruptInfo::new(false, None)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user