diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-29 20:10:42 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-29 20:10:42 +0200 |
commit | 4a412b96aa71451b013f4cebb9becdfe746586b5 (patch) | |
tree | ea79a619c6c9ff1ee91fe9c523ca55a8a359f6ac /src/imap | |
parent | b71d9678892814a62d422af11eb91e61943836a2 (diff) | |
download | aerogramme-4a412b96aa71451b013f4cebb9becdfe746586b5.tar.gz aerogramme-4a412b96aa71451b013f4cebb9becdfe746586b5.zip |
Add possibility to fetch full RFC822
Diffstat (limited to 'src/imap')
-rw-r--r-- | src/imap/mailbox_view.rs | 6 |
1 files changed, 5 insertions, 1 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) } |