mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-10 04:49:46 +00:00
Monotone-Parent: c9d2f25bdcfea3f8f41656cea282a4a8b50b02be
Monotone-Revision: a06ce5665fe20ccb682d88601d7ac8289b6491df Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-15T01:54:34 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
|
||||
- (void) _setupContext
|
||||
{
|
||||
NSString *clientClass, *mailInvitationParam;
|
||||
NSString *folder, *mailInvitationParam;
|
||||
NSArray *realFolderPath;
|
||||
SOGoUser *activeUser;
|
||||
|
||||
@@ -58,13 +58,7 @@
|
||||
clientObject = [self clientObject];
|
||||
owner = [clientObject ownerInContext: nil];
|
||||
|
||||
clientClass = NSStringFromClass([clientObject class]);
|
||||
if ([clientClass isEqualToString: @"SOGoContactGCSFolder"])
|
||||
baseFolder = @"Contacts";
|
||||
else if ([clientClass isEqualToString: @"SOGoAppointmentFolder"])
|
||||
baseFolder = @"Calendar";
|
||||
else
|
||||
baseFolder = nil;
|
||||
baseFolder = [[clientObject container] nameInContainer];
|
||||
|
||||
um = [LDAPUserManager sharedUserManager];
|
||||
ud = [activeUser userSettings];
|
||||
@@ -78,9 +72,12 @@
|
||||
|
||||
realFolderPath = [[clientObject nameInContainer]
|
||||
componentsSeparatedByString: @"_"];
|
||||
if ([realFolderPath count] > 1)
|
||||
folder = [realFolderPath objectAtIndex: 1];
|
||||
else
|
||||
folder = [realFolderPath objectAtIndex: 0];
|
||||
subscriptionPointer = [NSString stringWithFormat: @"%@:%@/%@",
|
||||
owner, baseFolder,
|
||||
[realFolderPath objectAtIndex: 1]];
|
||||
owner, baseFolder, folder];
|
||||
|
||||
mailInvitationParam
|
||||
= [[context request] formValueForKey: @"mail-invitation"];
|
||||
|
||||
Reference in New Issue
Block a user