aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-07-25 19:08:48 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-07-25 19:08:48 +0200
commitec061022e0b4bce8d5993d35a9c4ed494c44ecdd (patch)
treeb8f2460eada7dbd9a2a8912ed43f7557b21e7a83 /src/mail
parent17fba10d8ffe14bb47ae6389dbb28b012eac1b35 (diff)
downloadaerogramme-ec061022e0b4bce8d5993d35a9c4ed494c44ecdd.tar.gz
aerogramme-ec061022e0b4bce8d5993d35a9c4ed494c44ecdd.zip
finalize eml-codec integration
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/mailbox.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 4a7d712..fe36a14 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -315,10 +315,9 @@ impl MailboxInternal {
},
async {
// Save mail meta
- let mail_root = mail.parsed.imf;
let meta = MailMeta {
internaldate: now_msec(),
- headers: vec![],
+ headers: mail.parsed.raw_headers.to_vec(),
message_key: message_key.clone(),
rfc822_size: mail.raw.len(),
};
@@ -368,10 +367,9 @@ impl MailboxInternal {
},
async {
// Save mail meta
- let mail_root = mail.parsed.imf;
let meta = MailMeta {
internaldate: now_msec(),
- headers: vec![], //@FIXME we need to put the headers part
+ headers: mail.parsed.raw_headers.to_vec(),
message_key: message_key.clone(),
rfc822_size: mail.raw.len(),
};