diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 11:51:03 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 11:51:03 +0100 |
commit | 553ea25f1854706b60ce6f087545968533ef6140 (patch) | |
tree | 9affda3665b1cbc6a7aca82cdc789555788321ba /src/mail/mailbox.rs | |
parent | 1f28832deaff3a2319cc88d5a83ffe506b784fc8 (diff) | |
download | aerogramme-553ea25f1854706b60ce6f087545968533ef6140.tar.gz aerogramme-553ea25f1854706b60ce6f087545968533ef6140.zip |
gradually implement our interface
Diffstat (limited to 'src/mail/mailbox.rs')
-rw-r--r-- | src/mail/mailbox.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs index d92140d..614382e 100644 --- a/src/mail/mailbox.rs +++ b/src/mail/mailbox.rs @@ -14,6 +14,7 @@ use crate::login::Credentials; use crate::mail::uidindex::*; use crate::mail::unique_ident::*; use crate::mail::IMF; +use crate::storage::{RowStore, BlobStore}; use crate::time::now_msec; pub struct Mailbox { @@ -50,8 +51,8 @@ impl Mailbox { id, bucket: creds.bucket().to_string(), encryption_key: creds.keys.master.clone(), - k2v: creds.k2v_client()?, - s3: creds.s3_client()?, + k2v: creds.storage.builders.row_store()?, + s3: creds.storage.builders.blob_store()?, uid_index, mail_path, }); @@ -186,8 +187,8 @@ struct MailboxInternal { mail_path: String, encryption_key: Key, - k2v: K2vClient, - s3: S3Client, + k2v: RowStore, + s3: BlobStore, uid_index: Bayou<UidIndex>, } |