Show MDN details inline

This commit is contained in:
M66B 2020-07-10 14:53:53 +02:00
parent 1d1b42d192
commit 19906af1ff
1 changed files with 4 additions and 2 deletions

View File

@ -1706,7 +1706,8 @@ public class MessageHelper {
}
}
}
} else if (part.isMimeType("message/delivery-status")) {
} else if (part.isMimeType("message/delivery-status") ||
part.isMimeType("message/disposition-notification")) {
StringBuilder report = new StringBuilder();
report.append("<hr><div style=\"font-family: monospace; font-size: small;\">");
for (String line : result.split("\\r?\\n")) {
@ -2078,7 +2079,8 @@ public class MessageHelper {
else if (html)
parts.html.add(part);
} else {
if ("message/delivery-status".equalsIgnoreCase(contentType.getBaseType()))
if ("message/delivery-status".equalsIgnoreCase(contentType.getBaseType()) ||
"message/disposition-notification".equalsIgnoreCase(contentType.getBaseType()))
parts.extra.add(part);
AttachmentPart apart = new AttachmentPart();