mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
Added workaround for NIL message content type
This commit is contained in:
parent
f7d7f411bf
commit
edd995cf37
1 changed files with 8 additions and 0 deletions
|
@ -4501,6 +4501,14 @@ public class MessageHelper {
|
|||
!Part.ATTACHMENT.equalsIgnoreCase(disposition) && TextUtils.isEmpty(filename)) {
|
||||
parts.text.add(new PartHolder(part, contentType));
|
||||
} else {
|
||||
// Workaround for NIL message content type
|
||||
if ("application/octet-stream".equals(ct) && part instanceof MimeMessage) {
|
||||
ContentType plain = new ContentType("text/plain");
|
||||
plain.setParameterList(contentType.getParameterList());
|
||||
Log.w("Converting from " + contentType + " to " + plain);
|
||||
parts.text.add(new PartHolder(part, plain));
|
||||
}
|
||||
|
||||
if (Report.isDeliveryStatus(ct) ||
|
||||
Report.isDispositionNotification(ct) ||
|
||||
Report.isFeedbackReport(ct))
|
||||
|
|
Loading…
Reference in a new issue