mimeparser: do not squash NDN text parts into attachments

Text part usually contains an error message that we want to display in
the UI.
This commit is contained in:
link2xt
2022-07-10 18:18:45 +00:00
parent 2e009d1327
commit 32eb016ee7
4 changed files with 141 additions and 2 deletions

View File

@@ -535,7 +535,9 @@ impl MimeMessage {
self.parse_system_message_headers(context);
self.parse_avatar_headers(context).await;
self.parse_videochat_headers();
self.squash_attachment_parts();
if self.failure_report.is_none() {
self.squash_attachment_parts();
}
if let Some(ref subject) = self.get_subject() {
let mut prepend_subject = true;