mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
feat(ytnef): add possibility to add event to calendar from winmail.dat
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -55,5 +55,14 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
SOGoTNEFMailBodyPart = {
|
||||
methods = {
|
||||
addToCalendar = {
|
||||
protectedBy = "View";
|
||||
actionClass = "UIxMailPartICalActions";
|
||||
actionName = "addToCalendar";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user