aboutsummaryrefslogtreecommitdiff
path: root/src/mail/mailbox.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-07-25 10:59:48 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-07-25 10:59:48 +0200
commit17fba10d8ffe14bb47ae6389dbb28b012eac1b35 (patch)
treee9bb16c769d926985b7e1259626a284dce84d865 /src/mail/mailbox.rs
parent24fed41288531bf3bf69657eaf3287ff545d0254 (diff)
downloadaerogramme-17fba10d8ffe14bb47ae6389dbb28b012eac1b35.tar.gz
aerogramme-17fba10d8ffe14bb47ae6389dbb28b012eac1b35.zip
replacing mail_parser by eml_codec, first iteration
Diffstat (limited to 'src/mail/mailbox.rs')
-rw-r--r--src/mail/mailbox.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 445dcfd..4a7d712 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -315,10 +315,10 @@ impl MailboxInternal {
},
async {
// Save mail meta
- let mail_root = mail.parsed.root_part();
+ let mail_root = mail.parsed.imf;
let meta = MailMeta {
internaldate: now_msec(),
- headers: mail.raw[..mail_root.offset_body].to_vec(),
+ headers: vec![],
message_key: message_key.clone(),
rfc822_size: mail.raw.len(),
};
@@ -368,10 +368,10 @@ impl MailboxInternal {
},
async {
// Save mail meta
- let mail_root = mail.parsed.root_part();
+ let mail_root = mail.parsed.imf;
let meta = MailMeta {
internaldate: now_msec(),
- headers: mail.raw[..mail_root.offset_body].to_vec(),
+ headers: vec![], //@FIXME we need to put the headers part
message_key: message_key.clone(),
rfc822_size: mail.raw.len(),
};