Update all modules to use registry - part 1
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user