aboutsummaryrefslogtreecommitdiff
path: root/src/mail/mailbox.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-21 21:54:36 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-21 21:54:36 +0100
commit012c6ad6724b6a6e155ee717e6d558e1fe199e43 (patch)
tree986377de04024911c1c460e41828dde546d5a6a6 /src/mail/mailbox.rs
parent4b8b48b48572115b943efdf6356a191871d46a55 (diff)
downloadaerogramme-012c6ad6724b6a6e155ee717e6d558e1fe199e43.tar.gz
aerogramme-012c6ad6724b6a6e155ee717e6d558e1fe199e43.zip
initialize aws sdk with our info
Diffstat (limited to 'src/mail/mailbox.rs')
-rw-r--r--src/mail/mailbox.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 65f44b1..60a91dd 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -25,7 +25,7 @@ impl Mailbox {
let index_path = format!("index/{}", id);
let mail_path = format!("mail/{}", id);
- let mut uid_index = Bayou::<UidIndex>::new(creds, index_path)?;
+ let mut uid_index = Bayou::<UidIndex>::new(creds, index_path).await?;
uid_index.sync().await?;
let uidvalidity = uid_index.state().uidvalidity;
@@ -44,7 +44,7 @@ impl Mailbox {
let mbox = RwLock::new(MailboxInternal {
id,
encryption_key: creds.keys.master.clone(),
- storage: creds.storage.build()?,
+ storage: creds.storage.build().await?,
uid_index,
mail_path,
});