summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-11-24 11:07:58 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-11-24 14:28:28 +0200
commit0a8a0c04c8ce2a7a62b0dbb7eed1d5a8f27c91e9 (patch)
treeccef76248e99f9104ac5916c253f6d467ec007cd
parentede5851bafd597b018a39e56d9ebe77dc7e03f12 (diff)
downloadmeli-0a8a0c04c8ce2a7a62b0dbb7eed1d5a8f27c91e9.zip
compose: treat inline message/rfc822 as attachments
-rw-r--r--src/components/mail/view.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/mail/view.rs b/src/components/mail/view.rs
index ab8a57f5..01387eca 100644
--- a/src/components/mail/view.rs
+++ b/src/components/mail/view.rs
@@ -620,7 +620,7 @@ impl MailView {
acc: &mut Vec<AttachmentDisplay>,
active_jobs: &mut HashSet<JobId>,
) {
- if a.content_disposition.kind.is_attachment() {
+ if a.content_disposition.kind.is_attachment() || a.content_type == "message/rfc822" {
acc.push(AttachmentDisplay::Attachment { inner: a.clone() });
} else if a.content_type().is_text_html() {
let bytes = decode(a, None);
@@ -923,7 +923,9 @@ impl MailView {
let ret = find_attachment(root_attachment, &path[1..]);
if lidx == 0 {
return ret.and_then(|a| {
- if a.content_disposition.kind.is_attachment() {
+ if a.content_disposition.kind.is_attachment()
+ || a.content_type == "message/rfc822"
+ {
Some(a)
} else {
None