adjust code for pimalaya new errors + sync hash

This commit is contained in:
Clément DOUIN
2024-04-05 11:05:55 +02:00
parent ee9718a482
commit d95f277bab
18 changed files with 439 additions and 328 deletions
+5 -2
View File
@@ -213,7 +213,10 @@ impl TomlConfig {
#[cfg(feature = "account-sync")]
if let Some(true) = toml_account_config.sync.as_ref().and_then(|c| c.enable) {
if !disable_cache {
toml_account_config.backend = Some(BackendKind::MaildirForSync);
toml_account_config.backend = match toml_account_config.backend {
Some(BackendKind::Imap) => Some(BackendKind::ImapCache),
backend => backend,
}
}
}
@@ -260,7 +263,7 @@ impl TomlConfig {
}),
template: config.template,
#[cfg(feature = "account-sync")]
sync: config.sync,
sync: config.sync.map(Into::into),
#[cfg(feature = "pgp")]
pgp: config.pgp,
},