Require empty filename for inline text parts

pull/215/head
M66B 9 months ago
parent 5830ce1461
commit c3e088048b

@ -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));

Loading…
Cancel
Save