api!: remove default value for "addr" config

"addr" is already deprecated and its default value was using "configured_addr".
We want to get rid of "configured_addr" too, but users should at least
not access it through deprecated config.
This commit is contained in:
link2xt
2026-09-17 12:46:43 +00:00
committed by l
parent 6b1d982cfc
commit 3858c47ceb
9 changed files with 30 additions and 27 deletions
-1
View File
@@ -549,7 +549,6 @@ impl Context {
// Default values
let val = match key {
Config::ConfiguredInboxFolder => Some("INBOX".to_string()),
Config::Addr => self.get_config_opt(Config::ConfiguredAddr).await?,
_ => key.get_str("default").map(|s| s.to_string()),
};
Ok(val)