From ec061022e0b4bce8d5993d35a9c4ed494c44ecdd Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 25 Jul 2023 19:08:48 +0200 Subject: finalize eml-codec integration --- src/mail/mailbox.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mail') 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(), }; -- cgit v1.2.3