mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-19 18:35:25 +00:00
Monotone-Parent: 1d22ee7adc99b9420d9a7b859dfb1048c8c92eaa
Monotone-Revision: ad417bdf1bec487a4e724865914dd8c70bb16db5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-11-20T15:44:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user