feat: do not require ShowEmails to be set to All for adding second relay

This commit is contained in:
link2xt
2026-02-05 17:36:56 +00:00
committed by l
parent 69f6727751
commit 396104af47
3 changed files with 6 additions and 17 deletions

View File

@@ -712,12 +712,7 @@ impl Context {
Self::check_config(key, value)?;
let n_transports = self.count_transports().await?;
if n_transports > 1
&& matches!(
key,
Config::MvboxMove | Config::OnlyFetchMvbox | Config::ShowEmails
)
{
if n_transports > 1 && matches!(key, Config::MvboxMove | Config::OnlyFetchMvbox) {
bail!("Cannot reconfigure {key} when multiple transports are configured");
}