compose: treat inline message/rfc822 as attachments

pull/144/head
Manos Pitsidianakis 4 years ago
parent ede5851baf
commit 0a8a0c04c8
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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

Loading…
Cancel
Save