From 78201564dcf42683a8ddb907915b17da5b2f06dc Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 12 Dec 2018 15:35:00 +0100 Subject: [PATCH] Determine mime type of disposition notifications --- app/src/main/java/eu/faircode/email/MessageHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index d8ebd032e5..c8f3be5841 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -599,7 +599,8 @@ public class MessageHelper { // Try to guess a better content type // Sometimes PDF files are sent using the wrong type - if ("application/octet-stream".equals(attachment.type)) { + if ("application/octet-stream".equals(attachment.type) || + "message/disposition-notification".equals(attachment.type)) { String extension = Helper.getExtension(attachment.name); if (extension != null) { String type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.toLowerCase());