mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 18:27:43 +00:00
Log files are text files
This commit is contained in:
parent
a801ddb8e5
commit
4a12389ccb
1 changed files with 3 additions and 0 deletions
|
@ -160,6 +160,9 @@ public class EntityAttachment {
|
|||
|
||||
if ("application/zip".equals(type) ||
|
||||
"application/octet-stream".equals(type)) {
|
||||
if ("log".equalsIgnoreCase(extension))
|
||||
return "text/plain";
|
||||
|
||||
String gtype = MimeTypeMap.getSingleton()
|
||||
.getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT));
|
||||
if (gtype == null || gtype.equals(type))
|
||||
|
|
Loading…
Reference in a new issue