From ccd3caf4a7aecabaa762442532a76da9e9bbaaad Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 1 Mar 2026 01:37:02 +0000 Subject: [PATCH] fix: set is_chatmail during initial configuration This was initially done in the IMAP loop to set is_chatmail for existing users. They should all have the setting configured by now unless they install some very old backup. Setting during the configuration is needed for Delta Chat Desktop because it caches the value internally: --- src/configure.rs | 23 ++++++++++++++++++----- src/scheduler.rs | 8 -------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/configure.rs b/src/configure.rs index 5040aac6f..aeea22e5c 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -590,11 +590,14 @@ async fn configure(ctx: &Context, param: &EnteredLoginParam) -> Result imap_session, + Err(err) => { + bail!( + "{}", + nicer_configuration_error(ctx, format!("{err:#}")).await + ); + } }; progress!(ctx, 850); @@ -609,7 +612,17 @@ async fn configure(ctx: &Context, param: &EnteredLoginParam) -> Result Result { - if !ctx.get_config_bool(Config::FixIsChatmail).await? { - ctx.set_config_internal( - Config::IsChatmail, - crate::config::from_bool(session.is_chatmail()), - ) - .await?; - } - // Update quota no more than once a minute. if ctx.quota_needs_update(session.transport_id(), 60).await && let Err(err) = ctx.update_recent_quota(&mut session).await