mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Workaround unknown mime types
This commit is contained in:
parent
531e1347a9
commit
0beed82654
1 changed files with 2 additions and 1 deletions
|
@ -187,7 +187,8 @@ public class EntityAttachment {
|
|||
if ("text/plain".equals(type) && "ovpn".equals(extension))
|
||||
return "application/x-openvpn-profile";
|
||||
|
||||
if (TextUtils.isEmpty(type) || type.endsWith("/unknown") ||
|
||||
if (TextUtils.isEmpty(type) ||
|
||||
type.startsWith("unknown/") || type.endsWith("/unknown") ||
|
||||
"application/octet-stream".equals(type) || "application/zip".equals(type)) {
|
||||
if ("log".equalsIgnoreCase(extension))
|
||||
return "text/plain";
|
||||
|
|
Loading…
Reference in a new issue