merge of '3be1457342206d81824250d57633322dda8fb4d9'

and 'c110b42afb9f73f9a8ea6c766ec8e46b798c7316'

Monotone-Parent: 3be1457342206d81824250d57633322dda8fb4d9
Monotone-Parent: c110b42afb9f73f9a8ea6c766ec8e46b798c7316
Monotone-Revision: 96995dfe0ebbe5ac457207cfdbc88ebaa23b3068

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-22T18:38:02
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2012-02-22 18:38:02 +00:00
commit 88e1596a82
3 files changed
+14

No files matched your search

+4
View File
@@ -8,6 +8,10 @@
* SoObjects/SOGo/SQLSource.m (_lookupContactEntry:considerEmail:):
make sure the value of column pointer to by _kindField is not nil,
nor an NSNull instance before treating it like a string.
Use the value of "_imapHostField", when available, to map the
"c_imaphostname" value of the contact/user record.
(-init): new "_imapHostField" ivar, holder of the value of
IMAPHostFieldName of the source configuration dictionary.
2012-02-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+1
View File
@@ -41,6 +41,7 @@
NSArray *_loginFields;
NSArray *_mailFields;
NSString *_imapLoginField;
NSString *_imapHostField;
NSString *_userPasswordAlgorithm;
NSURL *_viewURL;
+9
View File
@@ -88,6 +88,7 @@
_viewURL = nil;
_kindField = nil;
_multipleBookingsField = nil;
_imapHostField = nil;
}
return self;
@@ -103,6 +104,7 @@
[_viewURL release];
[_kindField release];
[_multipleBookingsField release];
[_imapHostField release];
[super dealloc];
}
@@ -118,6 +120,7 @@
ASSIGN(_mailFields, [udSource objectForKey: @"MailFieldNames"]);
ASSIGN(_userPasswordAlgorithm, [udSource objectForKey: @"userPasswordAlgorithm"]);
ASSIGN(_imapLoginField, [udSource objectForKey: @"IMAPLoginFieldName"]);
ASSIGN(_imapHostField, [udSource objectForKey: @"IMAPHostFieldName"]);
ASSIGN(_kindField, [udSource objectForKey: @"KindFieldName"]);
ASSIGN(_multipleBookingsField, [udSource objectForKey: @"MultipleBookingsFieldName"]);
@@ -505,6 +508,12 @@
}
[response setObject: emails forKey: @"c_emails"];
if (_imapHostField)
{
value = [response objectForKey: _imapHostField];
if ([value isNotNull])
[response setObject: value forKey: @"c_imaphostname"];
}
// We check if the user can authenticate
if (_authenticationFilter)