Require empty filename for inline text parts

This commit is contained in:
M66B 2024-04-10 16:33:43 +02:00
parent 5830ce1461
commit c3e088048b
1 changed files with 1 additions and 0 deletions

View File

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