aboutsummaryrefslogtreecommitdiff
path: root/src/mail/mailbox.rs
diff options
context:
space:
mode:
authorQuentin <quentin@dufour.io>2023-10-12 10:22:41 +0000
committerQuentin <quentin@dufour.io>2023-10-12 10:22:41 +0000
commit609dde413972ebeeb8cd658a5ec9f62b34b5c402 (patch)
tree419f57fbd9c179c518fd57c0e3f31098305eb4b3 /src/mail/mailbox.rs
parent726b8c00159230e44e3b7726cb2c96d08073379c (diff)
parenta1b7ca17c0badff4c983f3738531f3aa9b0fb977 (diff)
downloadaerogramme-609dde413972ebeeb8cd658a5ec9f62b34b5c402.tar.gz
aerogramme-609dde413972ebeeb8cd658a5ec9f62b34b5c402.zip
Merge pull request 'partial re-implementation of body ext' (#30) from bodyext into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/aerogramme/pulls/30
Diffstat (limited to 'src/mail/mailbox.rs')
-rw-r--r--src/mail/mailbox.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index fe36a14..d92140d 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -369,7 +369,7 @@ impl MailboxInternal {
// Save mail meta
let meta = MailMeta {
internaldate: now_msec(),
- headers: mail.parsed.raw_headers.to_vec(),
+ headers: mail.parsed.raw_headers.to_vec(),
message_key: message_key.clone(),
rfc822_size: mail.raw.len(),
};
@@ -400,7 +400,7 @@ impl MailboxInternal {
futures::try_join!(
async {
// Delete mail body from S3
- let dor = DeleteObjectRequest{
+ let dor = DeleteObjectRequest {
bucket: self.bucket.clone(),
key: format!("{}/{}", self.mail_path, ident),
..Default::default()
@@ -461,7 +461,7 @@ impl MailboxInternal {
futures::try_join!(
async {
// Copy mail body from S3
- let cor = CopyObjectRequest{
+ let cor = CopyObjectRequest {
bucket: self.bucket.clone(),
key: format!("{}/{}", self.mail_path, new_id),
copy_source: format!("{}/{}/{}", from.bucket, from.mail_path, source_id),