Update all modules to use registry - part 1

This commit is contained in:
mdecimus
2026-02-09 18:57:48 +01:00
parent 2dc0776109
commit cc88715013
174 changed files with 1844 additions and 1924 deletions

View File

@@ -172,7 +172,7 @@ impl EmailCopy for Server {
batch.with_account_id(to_account_id);
// Determine thread id
let tenant_id = self.account_info(to_account_id).await?.tenant_id();
let tenant_id = self.account(to_account_id).await?.tenant_id();
let thread_id = if let Some(thread_id) = thread_result.thread_id {
thread_id
} else {

View File

@@ -262,7 +262,7 @@ impl EmailDeletion for Server {
// Delete messages
let mut batch = BatchBuilder::new();
let tenant_id = self
.account_info(account_id)
.account(account_id)
.await
.caused_by(trc::location!())?
.tenant_id();

View File

@@ -117,10 +117,7 @@ impl SieveScriptIngest for Server {
let mut instance = self.core.sieve.untrusted_runtime.filter_parsed(message);
// Set account name and email
let account_info = self
.account_info(account_id)
.await
.caused_by(trc::location!())?;
let account_info = self.account(account_id).await.caused_by(trc::location!())?;
let mail_from = account_info.name().to_string();
instance.set_user_full_name(
account_info