mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
Trigger reconnection when failing to fetch existing messages
This commit is contained in:
@@ -143,6 +143,7 @@ async fn inbox_loop(ctx: Context, started: Sender<()>, inbox_handlers: ImapConne
|
||||
if !fetched_existing_msgs {
|
||||
if let Err(err) = connection.fetch_existing_msgs(&ctx).await {
|
||||
warn!(ctx, "Failed to fetch existing messages: {:#}", err);
|
||||
connection.trigger_reconnect(&ctx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user