1
0
Fork 0
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:
M66B 2020-01-26 18:11:53 +01:00
parent cfe47c7beb
commit b6b1768461

View file

@ -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";