1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Added text/x-log extra

This commit is contained in:
M66B 2024-02-21 08:24:59 +01:00
parent 7289841648
commit 943ad9398f

View file

@ -3580,6 +3580,10 @@ public class MessageHelper {
"text/x-patch".equalsIgnoreCase(contentType.getBaseType()); "text/x-patch".equalsIgnoreCase(contentType.getBaseType());
} }
boolean isLog() {
return "text/x-log".equalsIgnoreCase(contentType.getBaseType());
}
boolean isReport() { boolean isReport() {
String ct = contentType.getBaseType(); String ct = contentType.getBaseType();
return (Report.isDeliveryStatus(ct) || return (Report.isDeliveryStatus(ct) ||
@ -4002,7 +4006,7 @@ public class MessageHelper {
Log.e(ex); Log.e(ex);
result = HtmlHelper.formatPlainText(result); result = HtmlHelper.formatPlainText(result);
} }
} else if (h.isPatch()) { } else if (h.isPatch() || h.isLog()) {
result = "<hr>" + result = "<hr>" +
"<pre style=\"font-family: monospace; font-size:small;\">" + "<pre style=\"font-family: monospace; font-size:small;\">" +
HtmlHelper.formatPlainText(result) + HtmlHelper.formatPlainText(result) +
@ -5133,7 +5137,8 @@ public class MessageHelper {
if ("text/markdown".equalsIgnoreCase(ct) || if ("text/markdown".equalsIgnoreCase(ct) ||
"text/x-diff".equalsIgnoreCase(ct) || "text/x-diff".equalsIgnoreCase(ct) ||
"text/x-patch".equalsIgnoreCase(ct)) "text/x-patch".equalsIgnoreCase(ct) ||
"text/x-log".equalsIgnoreCase(ct))
parts.extra.add(new PartHolder(part, contentType)); parts.extra.add(new PartHolder(part, contentType));
if (Report.isDeliveryStatus(ct) || if (Report.isDeliveryStatus(ct) ||