Assume application/pgp-encrypted on missing protocol

This commit is contained in:
M66B 2021-02-24 18:20:06 +01:00
parent d3f4f29d0c
commit 861596e956
1 changed files with 1 additions and 1 deletions

View File

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