mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
Monotone-Parent: bef1f662e1701b836a89ce52809aac40d4c7a964
Monotone-Revision: d3e2768d395c5117bc0c0e5ce9913f9cea531223 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-08-21T17:42:31 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
{
|
||||
id <SOGoContactObject> contact;
|
||||
NSArray *accounts, *contactsId;
|
||||
NSString *firstAccount, *newLocation, *parameters, *folderId, *uid, *email;
|
||||
NSString *firstAccount, *newLocation, *parameters, *folderId, *uid, *email, *n;
|
||||
NSMutableString *fn;
|
||||
NSEnumerator *uids;
|
||||
NSMutableArray *addresses;
|
||||
@@ -160,6 +160,7 @@
|
||||
SOGoContactFolders *folders;
|
||||
SOGoParentFolder *folder;
|
||||
WORequest *request;
|
||||
unsigned int max;
|
||||
|
||||
parameters = nil;
|
||||
co = [self clientObject];
|
||||
@@ -202,7 +203,24 @@
|
||||
if (email)
|
||||
{
|
||||
email = [NSString stringWithFormat: @"<%@>", email];
|
||||
|
||||
// We append the contact's name
|
||||
fn = [NSMutableString stringWithString: [card fn]];
|
||||
if ([fn length] == 0)
|
||||
{
|
||||
n = [card n];
|
||||
if (n)
|
||||
{
|
||||
max = [n count];
|
||||
if (max > 0)
|
||||
{
|
||||
if (max > 1)
|
||||
fn = [NSMutableString stringWithFormat: @"%@ %@", [n objectAtIndex: 1], [n objectAtIndex: 0]];
|
||||
else
|
||||
fn = [NSMutableString stringWithString: [n objectAtIndex: 0]];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fn)
|
||||
{
|
||||
[fn appendFormat: @" %@", email];
|
||||
|
||||
Reference in New Issue
Block a user