fix(mail): don't encode calendar mime part twice

SOPE will take care of encoding all text parts in quoted-printable if
necessary.

Fixes #5391
Fixes #5393
pull/273/merge
Francis Lachapelle 2021-09-15 11:34:34 -04:00
parent 1c7200c90d
commit 2c62aafe70
1 changed files with 1 additions and 3 deletions

View File

@ -765,10 +765,8 @@
headerMap = [NGMutableHashMap hashMapWithCapacity: 3];
[headerMap setObject: @"urn:content-classes:calendarmessage" forKey: @"Content-Class"];
[headerMap setObject: header forKey: @"content-type"];
[headerMap setObject: @"quoted-printable"
forKey: @"content-transfer-encoding"];
bodyPart = [NGMimeBodyPart bodyPartWithHeader: headerMap];
[bodyPart setBody: [objectData dataByEncodingQuotedPrintable]];
[bodyPart setBody: objectData];
return bodyPart;
}