Require inline for inline text

This commit is contained in:
M66B
2024-04-10 07:36:30 +02:00
parent 3e15d628e7
commit 8dbf37884f

View File

@@ -5119,7 +5119,7 @@ public class MessageHelper {
String ct = contentType.getBaseType();
if (("text/plain".equalsIgnoreCase(ct) || "text/html".equalsIgnoreCase(ct)) &&
!Part.ATTACHMENT.equalsIgnoreCase(disposition) &&
Part.INLINE.equalsIgnoreCase(disposition) &&
(size <= MAX_MESSAGE_SIZE || size == Integer.MAX_VALUE)) {
parts.text.add(new PartHolder(part, contentType));
} else {