1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Process all body parts

This commit is contained in:
M66B 2024-10-17 16:58:42 +02:00
parent 9316837ee9
commit 4a25e63647

View file

@ -4999,9 +4999,14 @@ public class MessageHelper {
for (int i = 0; i < mp.getCount(); i++) {
BodyPart bp = mp.getBodyPart(i);
if (isMimeType(bp, "multipart/signed") || isMimeType(bp, "multipart/encrypted")) {
for (int j = 0; j < mp.getCount(); j++)
if (j != i)
getMessageParts(part, mp.getBodyPart(j), parts, null);
part = (MimePart) bp;
break;
} else if (isMimeType(bp, "application/pgp-encrypted") && i + 1 < mp.getCount()) {
for (int j = 0; j < i; j++)
getMessageParts(part, mp.getBodyPart(j), parts, null);
// Workaround Outlook problem
// --_xxxoutlookfr_
// Content-Type: text/plain; charset="us-ascii"