Monotone-Parent: d20ec84ad2b4b3caf96c35a13c3f6b3c714ea6e3

Monotone-Revision: 841f4e0f7b8c42d31d853c73f76ede6b5aad76e9

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-06T20:51:59
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-09-06 20:51:59 +00:00
parent 3da1ca9aa1
commit 3964cc04d5
2 changed files with 23 additions and 3 deletions
+7
View File
@@ -1,3 +1,10 @@
2007-09-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentObject.m
([SOGoAppointmentObject -saveContentString:_iCalbaseSequence:_v]):
check whether the new appointment object is still relevant before
sending a notification.
2007-09-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoWebAuthenticator.m ([SOGoWebAuthenticator
+16 -3
View File
@@ -19,6 +19,8 @@
02111-1307, USA.
*/
#import <Foundation/NSCalendarDate.h>
#import <NGObjWeb/NSException+HTTP.h>
#import <NGExtensions/NSNull+misc.h>
#import <NGExtensions/NSObject+Logs.h>
@@ -181,6 +183,14 @@
}
/* "iCal multifolder saves" */
- (BOOL) _aptIsStillRelevant: (iCalEvent *) appointment
{
NSCalendarDate *now;
now = [NSCalendarDate calendarDate];
return ([[appointment endDate] earlierDate: now] == now);
}
- (NSException *) saveContentString: (NSString *) _iCal
baseSequence: (int) _v
@@ -321,9 +331,11 @@
if (delError != nil) return delError;
/* email notifications */
if ([self sendEMailNotifications])
if ([self sendEMailNotifications]
&& [self _aptIsStillRelevant: newApt])
{
attendees = [NSMutableArray arrayWithArray: [changes insertedAttendees]];
attendees
= [NSMutableArray arrayWithArray: [changes insertedAttendees]];
[attendees removePerson: organizer];
[self sendEMailUsingTemplateNamed: @"Invitation"
forOldObject: nil
@@ -340,7 +352,8 @@
toAttendees: attendees];
}
attendees = [NSMutableArray arrayWithArray:[changes deletedAttendees]];
attendees
= [NSMutableArray arrayWithArray: [changes deletedAttendees]];
[attendees removePerson: organizer];
if ([attendees count])
{