mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-28 05:14:18 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user