mirror of https://github.com/M66B/FairEmail.git
Require empty filename for inline text parts
This commit is contained in:
parent
5830ce1461
commit
c3e088048b
|
@ -5119,6 +5119,7 @@ public class MessageHelper {
|
||||||
|
|
||||||
String ct = contentType.getBaseType();
|
String ct = contentType.getBaseType();
|
||||||
if (("text/plain".equalsIgnoreCase(ct) || "text/html".equalsIgnoreCase(ct)) &&
|
if (("text/plain".equalsIgnoreCase(ct) || "text/html".equalsIgnoreCase(ct)) &&
|
||||||
|
TextUtils.isEmpty(filename) &&
|
||||||
!Part.ATTACHMENT.equalsIgnoreCase(disposition) &&
|
!Part.ATTACHMENT.equalsIgnoreCase(disposition) &&
|
||||||
(size <= MAX_MESSAGE_SIZE || size == Integer.MAX_VALUE)) {
|
(size <= MAX_MESSAGE_SIZE || size == Integer.MAX_VALUE)) {
|
||||||
parts.text.add(new PartHolder(part, contentType));
|
parts.text.add(new PartHolder(part, contentType));
|
||||||
|
|
Loading…
Reference in New Issue