diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/imap/mailbox_view.rs | 6 | ||||
-rw-r--r-- | src/mail/mailbox.rs | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs index 9a956b6..e1ea516 100644 --- a/src/imap/mailbox_view.rs +++ b/src/imap/mailbox_view.rs @@ -246,6 +246,11 @@ impl MailboxView { IString::Literal(meta.headers.clone().try_into().unwrap()), )))) } + FetchAttribute::Rfc822 => { + attributes.push(MessageAttribute::Rfc822(NString(Some( + IString::Literal(body.as_ref().unwrap().clone().try_into().unwrap()), + )))) + } FetchAttribute::Envelope => { attributes.push(MessageAttribute::Envelope(message_envelope(&parsed))) } @@ -260,7 +265,6 @@ impl MailboxView { })); } - tracing::info!("Fetch result: {:?}", ret); Ok(ret) } diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs index bb1ca7a..479021d 100644 --- a/src/mail/mailbox.rs +++ b/src/mail/mailbox.rs @@ -239,7 +239,8 @@ impl MailboxInternal { let mail = br#"From: Garage team <garagehq@deuxfleurs.fr> Subject: Welcome to Aerogramme!! -This is just a test email, feel free to ignore."#; +This is just a test email, feel free to ignore. +"#; let mail = IMF::try_from(&mail[..]).unwrap(); self.append(mail, None).await?; |