Workaround Outlook PGP problem

pull/212/head
M66B 2 years ago
parent 05092934ae
commit 589a27a0b9

@ -4674,6 +4674,20 @@ public class MessageHelper {
if (bp.isMimeType("multipart/signed") || bp.isMimeType("multipart/encrypted")) { if (bp.isMimeType("multipart/signed") || bp.isMimeType("multipart/encrypted")) {
part = (MimePart) bp; part = (MimePart) bp;
break; break;
} else if (bp.isMimeType("application/pgp-encrypted") && i + 1 < mp.getCount()) {
// Workaround Outlook problem
// --_xxxoutlookfr_
// Content-Type: text/plain; charset="us-ascii"
//
// --_xxxoutlookfr_
// Content-Type: application/pgp-encrypted; name="ATT00001"
// Content-Disposition: attachment; filename="ATT00001";
//
// --_xxxoutlookfr_
// Content-Type: application/octet-stream; name="encrypted.asc"
// Content-Disposition: attachment; filename="encrypted.asc";
getMessageParts(part, mp.getBodyPart(i + 1), parts, EntityAttachment.PGP_MESSAGE);
return parts;
} }
} }
} else { } else {

Loading…
Cancel
Save