From 731c1bdfd9da3bcbbf9df6d2e4f5042d96a3de53 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 8 Apr 2022 08:18:13 -0400 Subject: [PATCH] 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 --- SoObjects/Appointments/SOGoCalendarComponent.m | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 9c63ec46c..35c2832b8 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -37,6 +37,7 @@ #import #import #import +#import #import #import #import @@ -142,6 +143,16 @@ return aclManager; } +- (void) setIsNew: (BOOL) newIsNew +{ + [super setIsNew: newIsNew]; +} + +- (BOOL) isNew +{ + return [super isNew]; +} + - (NSException *) changeParticipationStatus: (NSString *) newPartStat withDelegate: (iCalPerson *) delegate alarm: (iCalAlarm *) alarm @@ -755,7 +766,7 @@ [headerMap setObject: @"quoted-printable" forKey: @"content-transfer-encoding"]; bodyPart = [NGMimeBodyPart bodyPartWithHeader: headerMap]; - [bodyPart setBody: [objectData dataByEncodingQuotedPrintable]]; + [bodyPart setBody: objectData]; return bodyPart; }