aboutsummaryrefslogtreecommitdiff
path: root/src/mail/incoming.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail/incoming.rs')
-rw-r--r--src/mail/incoming.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/incoming.rs b/src/mail/incoming.rs
index 4e3fc8c..e550e98 100644
--- a/src/mail/incoming.rs
+++ b/src/mail/incoming.rs
@@ -198,7 +198,7 @@ async fn move_incoming_message(
// 2 parse mail and add to inbox
let msg = IMF::try_from(&plain_mail[..]).map_err(|_| anyhow!("Invalid email body"))?;
inbox
- .append_from_s3(msg, id, &object_key, message_key)
+ .append_from_s3(msg, id, object.to_ref(), message_key)
.await?;
// 3 delete from incoming