Monotone-Parent: 1d22ee7adc99b9420d9a7b859dfb1048c8c92eaa

Monotone-Revision: ad417bdf1bec487a4e724865914dd8c70bb16db5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-20T15:44:56
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-11-20 15:44:56 +00:00
parent 4e17404e8c
commit 86f278fd77
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2011-11-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreContext.m
(-initFromURL:withConnectionInfo:andTDBIndexing:): instantiate a
SOGoUser corresponding to the username of the new context and
associated it to the woContext ivar.
2011-11-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreFolder.m (-permissionEntries): new public

View File

@ -208,11 +208,17 @@ _prepareContextClass (Class contextClass,
andTDBIndexing: (struct tdb_wrap *) indexingTdb
{
NSString *username;
SOGoUser *activeUser;
if ((self = [self init]))
{
ASSIGN (contextUrl, newUrl);
username = [NSString stringWithUTF8String: newConnInfo->username];
activeUser = [SOGoUser userWithLogin: username];
if (!activeUser)
[self errorWithFormat: @"user '%@' not found in SOGo environment",
username];
[woContext setActiveUser: activeUser];
ASSIGN (mapping, [MAPIStoreMapping mappingForUsername: username
withIndexing: indexingTdb]);
[mapping increaseUseCount];