1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-31 11:31:40 +00:00

Fixed text/calendar when 8 bit mime

This commit is contained in:
M66B 2022-09-13 11:19:39 +02:00
parent a3ed7f244e
commit d9900ae52b

View file

@ -1613,7 +1613,8 @@ public class SMTPTransport extends Transport {
private boolean convertTo8Bit(MimePart part) {
boolean changed = false;
try {
if (part.isMimeType("text/*")) {
// text/* will cause problems for text/calendar, etc
if (part.isMimeType("text/plain") || part.isMimeType("text/html")) {
String enc = part.getEncoding();
if (enc != null && (enc.equalsIgnoreCase("quoted-printable") ||
enc.equalsIgnoreCase("base64"))) {