Monotone-Parent: 8da67e77abaa8a3dd458ac3f8ab6cbb3bbcc9a3b

Monotone-Revision: 2101b44ba7e2cdaabd9d79b575afddcae16c7925

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-08-20T21:50:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-08-20 21:50:47 +00:00
parent c57130576c
commit 96cdba3451
2 changed files with 9 additions and 3 deletions
+5
View File
@@ -1,5 +1,10 @@
2007-08-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder
-_flattenedRecords:records]): when the c_cn field is empty,
returns set a formatted string with the concatenation of
c_givenname and c_sn as the displayName.
* SoObjects/Mailer/SOGoMailAccounts.m ([SOGoMailAccounts
-isValidMailAccountName:_key]): prevent unknown accounts from
being accessed.
+4 -3
View File
@@ -30,11 +30,12 @@
#import <EOControl/EOSortOrdering.h>
#import <GDLContentStore/GCSFolder.h>
#import <SoObjects/SOGo/NSDictionary+Utilities.h>
#import "SOGoContactGCSEntry.h"
#import "SOGoContactGCSFolder.h"
#define folderListingFields [NSArray arrayWithObjects: @"c_name", @"c_cn", \
@"c_givenname", @"c_screenname", \
@"c_givenname", @"c_sn", @"c_screenname", \
@"c_o", @"c_mail", @"c_telephonenumber", \
nil]
@@ -177,8 +178,8 @@
forKey: @"c_name"];
data = [oldRecord objectForKey: @"c_cn"];
if (!data)
data = @"";
if (![data length])
data = [oldRecord keysWithFormat: @"%{c_givenname} %{c_sn}"];
[newRecord setObject: data
forKey: @"displayName"];