Monotone-Parent: 284725383e8970e66810d4b8facf4af043b77fe2
Monotone-Revision: 34a0500cef031e53eda3a1a6c3b2f626ce8f76dc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-16T20:57:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
baafa421ab
commit
a8cc7409a1
|
@ -1,5 +1,13 @@
|
|||
2012-03-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreGCSBaseContext.m
|
||||
(+createRootSecondaryFolderWithFID:andName:forUser:): setup the
|
||||
userContext in the MAPIApp object.
|
||||
|
||||
* OpenChange/MAPIStoreMailContext.m
|
||||
(+createRootSecondaryFolderWithFID:andName:forUser:): setup the
|
||||
userContext in the MAPIApp object.
|
||||
|
||||
* OpenChange/MAPIStoreContactsFolder.m
|
||||
(-getPidTagDefaultPostMessageClass:inMemCtx:): new getter.
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#import <SOGo/SOGoGCSFolder.h>
|
||||
#import <SOGo/SOGoParentFolder.h>
|
||||
|
||||
#import "MAPIApplication.h"
|
||||
#import "MAPIStoreUserContext.h"
|
||||
#import "NSString+MAPIStore.h"
|
||||
|
||||
|
@ -118,6 +119,7 @@
|
|||
|
||||
userContext = [MAPIStoreUserContext userContextWithUsername: userName
|
||||
andTDBIndexing: NULL];
|
||||
[MAPIApp setUserContext: userContext];
|
||||
moduleName = [self MAPIModuleName];
|
||||
parentFolder = [[userContext rootFolders] objectForKey: moduleName];
|
||||
if (![parentFolder newFolderWithName: folderName
|
||||
|
@ -126,6 +128,7 @@
|
|||
userName, moduleName, nameInContainer];
|
||||
else
|
||||
mapistoreURI = nil;
|
||||
[MAPIApp setUserContext: nil];
|
||||
|
||||
return mapistoreURI;
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#import "NSString+MAPIStore.h"
|
||||
|
||||
#import <SOGo/NSString+Utilities.h>
|
||||
#import "MAPIApplication.h"
|
||||
#import "MAPIStoreMailContext.h"
|
||||
|
||||
#include <dlinklist.h>
|
||||
|
@ -176,6 +177,7 @@ MakeDisplayFolderName (NSString *folderName)
|
|||
|
||||
userContext = [MAPIStoreUserContext userContextWithUsername: userName
|
||||
andTDBIndexing: NULL];
|
||||
[MAPIApp setUserContext: userContext];
|
||||
accountFolder = [[userContext rootFolders] objectForKey: @"mail"];
|
||||
folderName = [NSString stringWithFormat: @"folder%@",
|
||||
[newFolderName asCSSIdentifier]];
|
||||
|
@ -186,6 +188,7 @@ MakeDisplayFolderName (NSString *folderName)
|
|||
userName, userName, folderName];
|
||||
else
|
||||
mapistoreURI = nil;
|
||||
[MAPIApp setUserContext: nil];
|
||||
|
||||
return mapistoreURI;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue