mirror of https://github.com/M66B/FairEmail.git
Workaround incorrect Powerpoint mime type
This commit is contained in:
parent
fd3147ce8b
commit
e3f899a81f
|
@ -203,6 +203,9 @@ public class EntityAttachment {
|
||||||
if ("application/x-pdf".equals(type))
|
if ("application/x-pdf".equals(type))
|
||||||
return "application/pdf";
|
return "application/pdf";
|
||||||
|
|
||||||
|
if ("application/vnd.ms-pps".equals(type))
|
||||||
|
return "application/vnd.ms-powerpoint";
|
||||||
|
|
||||||
if (TextUtils.isEmpty(type) ||
|
if (TextUtils.isEmpty(type) ||
|
||||||
type.startsWith("unknown/") || type.endsWith("/unknown") ||
|
type.startsWith("unknown/") || type.endsWith("/unknown") ||
|
||||||
"application/octet-stream".equals(type) || "application/zip".equals(type)) {
|
"application/octet-stream".equals(type) || "application/zip".equals(type)) {
|
||||||
|
|
Loading…
Reference in New Issue