aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-12-22 19:32:07 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-12-22 19:32:07 +0100
commit0f7764d9f05b3fccfa30ddebb52997200af13bf2 (patch)
tree14c938e5bc2edeb4814290ffb0135b600d0bacf1 /src/mail
parent1057661da77c3d94e5a1ff51ab7fc58ecdb6a53a (diff)
downloadaerogramme-0f7764d9f05b3fccfa30ddebb52997200af13bf2.tar.gz
aerogramme-0f7764d9f05b3fccfa30ddebb52997200af13bf2.zip
s3 is now implemented
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/incoming.rs2
-rw-r--r--src/mail/mailbox.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mail/incoming.rs b/src/mail/incoming.rs
index 3eafac7..b17959a 100644
--- a/src/mail/incoming.rs
+++ b/src/mail/incoming.rs
@@ -429,7 +429,7 @@ impl EncryptedMessage {
storage::BlobRef(format!("incoming/{}", gen_ident())),
self.encrypted_body.clone().into(),
).with_meta(MESSAGE_KEY.to_string(), key_header);
- storage.blob_insert(&blob_val).await?;
+ storage.blob_insert(blob_val).await?;
// Update watch key to signal new mail
let watch_val = storage::RowVal::new(
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 60a91dd..c925f39 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -266,7 +266,7 @@ impl MailboxInternal {
async {
// Encrypt and save mail body
let message_blob = cryptoblob::seal(mail.raw, &message_key)?;
- self.storage.blob_insert(&BlobVal::new(
+ self.storage.blob_insert(BlobVal::new(
BlobRef(format!("{}/{}", self.mail_path, ident)),
message_blob,
)).await?;