See ChangeLog

Monotone-Parent: 534c405827d51663a4ee6b759bfafb2d71b6daed
Monotone-Revision: 17653584717f59bb179b31a0accbd1257181e456

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-10-28T14:18:27
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2009-10-28 14:18:27 +00:00
parent 63583757ae
commit b0be0530e9
3 changed files with 18 additions and 10 deletions

View File

@@ -1,3 +1,11 @@
2009-10-28 Ludovic Marcotte <lmarcotte@inverse.ca>
* UI/MailPartViewers/UIxMailPartICalActions.m
(_setupChosenEventAndEventObject:) - we now
correctly save the event contained in the mail
when clicking on Accept/Decline/Delegate into
the user's calendar if it's not in there already.
2009-10-27 Ludovic Marcotte <lmarcotte@inverse.ca>
* SoObjects/SOGo/SOGoGCSFolder.m (create)

View File

@@ -55,9 +55,6 @@
- (BOOL) expandGroupsInEvent: (iCalEvent *) theEvent;
// - (NSException *) primarySaveContentString: (NSString *) _iCalString;
// - (NSException *) primaryDelete;
- (void) saveComponent: (iCalRepeatableEntityObject *) newObject;
/* mail notifications */
@@ -76,8 +73,6 @@
forObject: (iCalRepeatableEntityObject *) object
to: (NSArray *) recipients;
// - (BOOL) isOrganizerOrOwner: (SOGoUser *) user;
- (iCalPerson *) findParticipantWithUID: (NSString *) uid;
- (iCalPerson *) iCalPersonWithUID: (NSString *) uid;

View File

@@ -1,6 +1,6 @@
/* UIxMailPartICalActions.m - this file is part of SOGo
*
* Copyright (C) 2007-2008 Inverse inc.
* Copyright (C) 2007-2009 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
@@ -55,9 +55,9 @@
- (iCalEvent *) _emailEvent
{
NSData *content;
NSString *eventString;
iCalCalendar *emailCalendar;
NSString *eventString;
NSData *content;
content = [[self clientObject] fetchBLOB];
eventString = [[NSString alloc] initWithData: content
@@ -65,6 +65,7 @@
if (!eventString)
eventString = [[NSString alloc] initWithData: content
encoding: NSISOLatin1StringEncoding];
emailCalendar = [iCalCalendar parseSingleFromSource: eventString];
[eventString release];
@@ -109,6 +110,7 @@
- (SOGoAppointmentObject *) _eventObjectWithUID: (NSString *) uid
{
#warning this will not work if Bob reads emails of Alice and accepts events for her
return [self _eventObjectWithUID: uid forUser: [context activeUser]];
}
@@ -158,12 +160,15 @@
{
*eventObject = [self _eventObjectWithUID: [emailEvent uid]];
if ([*eventObject isNew])
chosenEvent = emailEvent;
{
chosenEvent = emailEvent;
[*eventObject saveContentString: [[emailEvent parent] versitString]];
}
else
{
if ([emailEvent recurrenceId])
{
// Event attached to email is not completed -- retrieve it
// Event attached to email is not complete -- retrieve it
// from the database.
NSString *recurrenceTime;