Monotone-Parent: f2f2f66b3df579ca384e578aded6976b6634ffcb

Monotone-Revision: c7009a2d8a1dce845aa1a365123f4b438e3168fe

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-01-03T22:52:27
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-01-03 22:52:27 +00:00
parent ad7259b751
commit 53feece892
4 changed files with 29 additions and 2 deletions
+4 -2
View File
@@ -573,7 +573,7 @@
NSMutableArray *emails;
NSDictionary *userEntry;
NSEnumerator *sogoSources;
NSObject <SOGoDNSource> *currentSource;
NSObject <SOGoSource> *currentSource;
NSString *sourceID, *cn, *c_domain, *c_uid, *c_imaphostname, *c_imaplogin;
NSArray *c_emails;
BOOL access;
@@ -592,12 +592,14 @@
sogoSources = [[self authenticationSourceIDsInDomain: domain]
objectEnumerator];
while ((sourceID = [sogoSources nextObject]))
userEntry = nil;
while (!userEntry && (sourceID = [sogoSources nextObject]))
{
currentSource = [_sources objectForKey: sourceID];
userEntry = [currentSource lookupContactEntryWithUIDorEmail: uid];
if (userEntry)
{
[currentUser setObject: sourceID forKey: @"SOGoSource"];
if (!cn)
cn = [userEntry objectForKey: @"c_cn"];
if (!c_uid)