Allow base64 for message/rfc822 attachments

This commit is contained in:
M66B 2024-09-14 18:00:36 +02:00
parent 0cd07139ec
commit bded6459c8
1 changed files with 2 additions and 0 deletions

View File

@ -1463,6 +1463,8 @@ public class MimeBodyPart extends BodyPart implements MimePart {
ContentType cType = new ContentType(type);
if (cType.match("multipart/*"))
return null;
if (cType.match("message/rfc822") && encoding.equalsIgnoreCase("base64"))
return encoding;
if (cType.match("message/*") &&
!PropUtil.getBooleanSystemProperty(
"mail.mime.allowencodedmessages", false))