mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-31 19:27:18 +00:00
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
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#import <NGCards/iCalDateTime.h>
|
#import <NGCards/iCalDateTime.h>
|
||||||
#import <NGCards/iCalEvent.h>
|
#import <NGCards/iCalEvent.h>
|
||||||
#import <NGCards/iCalPerson.h>
|
#import <NGCards/iCalPerson.h>
|
||||||
|
#import <NGCards/iCalToDo.h>
|
||||||
#import <NGCards/iCalRepeatableEntityObject.h>
|
#import <NGCards/iCalRepeatableEntityObject.h>
|
||||||
#import <NGMime/NGMimeBodyPart.h>
|
#import <NGMime/NGMimeBodyPart.h>
|
||||||
#import <NGMime/NGMimeMultipartBody.h>
|
#import <NGMime/NGMimeMultipartBody.h>
|
||||||
@@ -142,6 +143,16 @@
|
|||||||
return aclManager;
|
return aclManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) setIsNew: (BOOL) newIsNew
|
||||||
|
{
|
||||||
|
[super setIsNew: newIsNew];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) isNew
|
||||||
|
{
|
||||||
|
return [super isNew];
|
||||||
|
}
|
||||||
|
|
||||||
- (NSException *) changeParticipationStatus: (NSString *) newPartStat
|
- (NSException *) changeParticipationStatus: (NSString *) newPartStat
|
||||||
withDelegate: (iCalPerson *) delegate
|
withDelegate: (iCalPerson *) delegate
|
||||||
alarm: (iCalAlarm *) alarm
|
alarm: (iCalAlarm *) alarm
|
||||||
@@ -755,7 +766,7 @@
|
|||||||
[headerMap setObject: @"quoted-printable"
|
[headerMap setObject: @"quoted-printable"
|
||||||
forKey: @"content-transfer-encoding"];
|
forKey: @"content-transfer-encoding"];
|
||||||
bodyPart = [NGMimeBodyPart bodyPartWithHeader: headerMap];
|
bodyPart = [NGMimeBodyPart bodyPartWithHeader: headerMap];
|
||||||
[bodyPart setBody: [objectData dataByEncodingQuotedPrintable]];
|
[bodyPart setBody: objectData];
|
||||||
|
|
||||||
return bodyPart;
|
return bodyPart;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user