Allow base64 for message/rfc822 attachments

master
M66B 2 months ago
parent 0cd07139ec
commit bded6459c8

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

Loading…
Cancel
Save