show errors from connect_configured() (as 'IMAP Connect without configured params' (ConnectWithoutConfigure)) as DC_EVENT_ERROR_NETWORK as these may not be shown to the user if there is actually no internet

This commit is contained in:
B. Petersen
2020-07-21 00:36:21 +02:00
parent e53c88ecb8
commit 94035d6286

View File

@@ -105,7 +105,7 @@ async fn fetch(ctx: &Context, connection: &mut Imap) {
match ctx.get_config(Config::ConfiguredInboxFolder).await {
Some(watch_folder) => {
if let Err(err) = connection.connect_configured(&ctx).await {
error!(ctx, "{}", err);
error_network!(ctx, "{}", err);
return;
}