mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-04 00:04:19 +00:00
See ChangeLog.
Monotone-Parent: 468e7e6366c0f335fea6ffbfbc6ecf9ab41aaa77 Monotone-Revision: c241a8e1e716fa0db3e4f4e370c051096cc2c3e2 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-01-12T20:52:14
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import <NGObjWeb/NSException+HTTP.h>
|
||||
#import <NGObjWeb/WOApplication.h>
|
||||
@@ -160,6 +161,7 @@
|
||||
{
|
||||
NSMutableDictionary *newRecord;
|
||||
NSString *data;
|
||||
NSObject <SOGoSource> *recordSource;
|
||||
|
||||
newRecord = [NSMutableDictionary dictionaryWithCapacity: 8];
|
||||
[newRecord setObject: [oldRecord objectForKey: @"c_uid"]
|
||||
@@ -218,6 +220,11 @@
|
||||
if ([data length] > 0)
|
||||
[newRecord setObject: data forKey: @"contactInfo"];
|
||||
|
||||
recordSource = [oldRecord objectForKey: @"source"];
|
||||
if ([recordSource conformsToProtocol: @protocol (SOGoDNSource)] &&
|
||||
[[(NSObject <SOGoDNSource>*) recordSource MSExchangeHostname] length])
|
||||
[newRecord setObject: [NSNumber numberWithInt: 1] forKey: @"isMSExchange"];
|
||||
|
||||
return newRecord;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user