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:
parent
a3ed7f244e
commit
d9900ae52b
1 changed files with 2 additions and 1 deletions
|
@ -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"))) {
|
||||
|
|
Loading…
Reference in a new issue