mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-22 21:39:28 +00:00
Monotone-Parent: 279fca526b178f040bcbf469c4a1b60370cae7d9
Monotone-Revision: 3dee1ff445f5268ef4c0f3c4ce1e664d14c8dc7c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-10T21:40:39 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -139,25 +139,29 @@
|
||||
{
|
||||
WOResponse *response;
|
||||
NSEnumerator *contacts;
|
||||
NSString *responseString;
|
||||
NSString *responseString, *email;
|
||||
NSDictionary *contact;
|
||||
|
||||
response = [context response];
|
||||
|
||||
if ([results count] > 0)
|
||||
{
|
||||
[response setStatus: 200];
|
||||
contacts = [results objectEnumerator];
|
||||
contact = [contacts nextObject];
|
||||
if (contact)
|
||||
{
|
||||
responseString = [NSString stringWithFormat: @"%@:%@:%@",
|
||||
[contact objectForKey: @"c_uid"],
|
||||
[contact objectForKey: @"cn"],
|
||||
[contact objectForKey: @"c_email"]];
|
||||
[response setStatus: 200];
|
||||
email = [contact objectForKey: @"c_email"];
|
||||
if ([email length])
|
||||
{
|
||||
responseString = [NSString stringWithFormat: @"%@:%@:%@",
|
||||
[contact objectForKey: @"c_uid"],
|
||||
[contact objectForKey: @"cn"],
|
||||
email];
|
||||
// [response setHeader: @"text/plain; charset=iso-8859-1"
|
||||
// forKey: @"Content-Type"];
|
||||
[response appendContentString: responseString];
|
||||
[response appendContentString: responseString];
|
||||
}
|
||||
// contact = [contacts nextObject];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user