|
|
@ -1038,10 +1038,13 @@ public class MessageHelper {
|
|
|
|
TextUtils.isEmpty(filename) &&
|
|
|
|
TextUtils.isEmpty(filename) &&
|
|
|
|
((parts.plain == null && part.isMimeType("text/plain")) ||
|
|
|
|
((parts.plain == null && part.isMimeType("text/plain")) ||
|
|
|
|
(parts.html == null && part.isMimeType("text/html")))) {
|
|
|
|
(parts.html == null && part.isMimeType("text/html")))) {
|
|
|
|
if (part.isMimeType("text/plain"))
|
|
|
|
if (part.isMimeType("text/plain")) {
|
|
|
|
parts.plain = part;
|
|
|
|
if (parts.plain == null)
|
|
|
|
else
|
|
|
|
parts.plain = part;
|
|
|
|
parts.html = part;
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (parts.html == null)
|
|
|
|
|
|
|
|
parts.html = part;
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
AttachmentPart apart = new AttachmentPart();
|
|
|
|
AttachmentPart apart = new AttachmentPart();
|
|
|
|
apart.disposition = disposition;
|
|
|
|
apart.disposition = disposition;
|
|
|
|