aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mail_view.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-08 15:54:20 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-08 15:54:20 +0100
commit07e2e50928cc0654f3ef1180254be920e2abc136 (patch)
tree390db4735a328e497616283f46060fb273b7e2b6 /src/imap/mail_view.rs
parent8b5eb25c0cce525f92e29062b76853ee4ad27f62 (diff)
downloadaerogramme-07e2e50928cc0654f3ef1180254be920e2abc136.tar.gz
aerogramme-07e2e50928cc0654f3ef1180254be920e2abc136.zip
Fetch BODYSTRUCTURE now returns a BODYSTRUCTURE
Diffstat (limited to 'src/imap/mail_view.rs')
-rw-r--r--src/imap/mail_view.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imap/mail_view.rs b/src/imap/mail_view.rs
index 4b18021..6a6bede 100644
--- a/src/imap/mail_view.rs
+++ b/src/imap/mail_view.rs
@@ -79,7 +79,7 @@ impl<'a> MailView<'a> {
seen = SeenFlag::MustAdd;
}
self.rfc822()
- },
+ }
MessageDataItemName::Envelope => Ok(self.envelope()),
MessageDataItemName::Body => self.body(),
MessageDataItemName::BodyStructure => self.body_structure(),
@@ -185,12 +185,14 @@ impl<'a> MailView<'a> {
fn body(&self) -> Result<MessageDataItem<'static>> {
Ok(MessageDataItem::Body(mime_view::bodystructure(
self.content.as_msg()?.child.as_ref(),
+ false,
)?))
}
fn body_structure(&self) -> Result<MessageDataItem<'static>> {
Ok(MessageDataItem::Body(mime_view::bodystructure(
self.content.as_msg()?.child.as_ref(),
+ true,
)?))
}