Refactoring

This commit is contained in:
M66B 2021-12-24 20:04:51 +01:00
parent 35e0e0e923
commit f8ea8b5d05
1 changed files with 1 additions and 2 deletions

View File

@ -3310,8 +3310,7 @@ public class MessageHelper {
!Part.ATTACHMENT.equalsIgnoreCase(disposition) && TextUtils.isEmpty(filename)) {
parts.text.add(new PartHolder(part, contentType));
} else {
if ("message/delivery-status".equalsIgnoreCase(contentType.getBaseType()) ||
"message/disposition-notification".equalsIgnoreCase(contentType.getBaseType()))
if (Report.isDeliveryStatus(ct) || Report.isDispositionNotification(ct))
parts.extra.add(new PartHolder(part, contentType));
AttachmentPart apart = new AttachmentPart();