From 861596e956403067cd568160ee6ced6b611f32fb Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 24 Feb 2021 18:20:06 +0100 Subject: [PATCH] Assume application/pgp-encrypted on missing protocol --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 1 file changed, 1 insertion(+), 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 1da5cd03de..f7b0fd4cab 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -2384,7 +2384,7 @@ public class MessageHelper { } else if (part.isMimeType("multipart/encrypted")) { ContentType ct = new ContentType(part.getContentType()); String protocol = ct.getParameter("protocol"); - if ("application/pgp-encrypted".equals(protocol)) { + if ("application/pgp-encrypted".equals(protocol) || protocol == null) { Multipart multipart = (Multipart) part.getContent(); if (multipart.getCount() == 2) { // Ignore header