mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 21:55:13 +00:00
Recognize text/plain ICS as text/calendar
This commit is contained in:
parent
cfe47c7beb
commit
b6b1768461
1 changed files with 5 additions and 4 deletions
|
@ -181,12 +181,13 @@ public class EntityAttachment {
|
|||
if ("eml".equals(extension))
|
||||
return "message/rfc822";
|
||||
|
||||
if ("text/plain".equals(type) &&
|
||||
"ovpn".equals(extension))
|
||||
if ("text/plain".equals(type) && "ics".equals(extension))
|
||||
return "text/calendar";
|
||||
|
||||
if ("text/plain".equals(type) && "ovpn".equals(extension))
|
||||
return "application/x-openvpn-profile";
|
||||
|
||||
if ("application/zip".equals(type) ||
|
||||
"application/octet-stream".equals(type)) {
|
||||
if ("application/zip".equals(type) || "application/octet-stream".equals(type)) {
|
||||
if ("log".equalsIgnoreCase(extension))
|
||||
return "text/plain";
|
||||
|
||||
|
|
Loading…
Reference in a new issue