Authenticate using registry - part 2

This commit is contained in:
mdecimus
2026-02-05 18:41:23 +01:00
parent 0af735540d
commit 1a780ca294
83 changed files with 524 additions and 833 deletions

View File

@@ -131,7 +131,7 @@ impl EmailIngest for Server {
async fn email_ingest(&self, mut params: IngestEmail<'_>) -> trc::Result<IngestedEmail> {
// Check quota
let start_time = Instant::now();
let account_id = params.access_token.primary_id;
let account_id = params.access_token.account_id;
let tenant_id = params.access_token.tenant.map(|t| t.id);
let mut raw_message_len = params.raw_message.len() as u64;
let resource_token = params.access_token.as_resource_token();

View File

@@ -108,7 +108,7 @@ impl SieveScriptIngest for Server {
};
// Obtain mailboxIds
let account_id = access_token.primary_id;
let account_id = access_token.account_id;
let mut cache = self
.get_cached_messages(account_id)
.await