feat(ytnef): add possibility to add event to calendar from winmail.dat

This commit is contained in:
Hivert Quentin
2024-03-06 16:50:38 +01:00
parent f51c756cda
commit f609c31a32
2 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -277,6 +277,7 @@ unsigned char GetRruleMonthNum(unsigned char a, unsigned char b) {
NSString *partName, *type, *subtype;
NSString *value, *attendee;
RTFHandler *handler;
NGMimeBodyPart* eventPart;
DWORD signature;
DDWORD *classification;
@@ -664,9 +665,10 @@ unsigned char GetRruleMonthNum(unsigned char a, unsigned char b) {
if (debugOn)
NSLog(@"TNEF reconstructed vCalendar:\n%@", vcalendar);
[self bodyPartForData: [vcalendar dataUsingEncoding: NSUTF8StringEncoding]
eventPart = [self bodyPartForData: [vcalendar dataUsingEncoding: NSUTF8StringEncoding]
withType: @"text"
andSubtype: @"calendar"];
[self setPart: eventPart];
}
// Other classes to handle:
+9
View File
@@ -55,5 +55,14 @@
};
};
};
SOGoTNEFMailBodyPart = {
methods = {
addToCalendar = {
protectedBy = "View";
actionClass = "UIxMailPartICalActions";
actionName = "addToCalendar";
};
};
};
};
}