See ChangeLog

Monotone-Parent: 938ae259405463bbb24b4b86379a0b522a69961c
Monotone-Revision: 6411d6bcaaaa5245d22397cfde490125a116e0c7

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2008-12-15T21:32:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2008-12-15 21:32:32 +00:00
parent 2dcf143fb3
commit 6016ae3b08
2 changed files with 19 additions and 3 deletions
+5 -1
View File
@@ -2,7 +2,11 @@
* Updated german translations - patch from
Alexander Greiner-Baer <sogo-algb@freenet.de>
* SoObjects/Contacts/SOGoContactLDIFEntry.m
([SOGoContactLDIFEntry -vCard]): We now force
the usage of the SOGoLDAPContactInfoAttribute,
if defined, over "description" when generating
the "NOTE" attribute.
2008-12-14 Ludovic Marcotte <lmarcotte@inverse.ca>
+14 -2
View File
@@ -23,6 +23,7 @@
#import <Foundation/NSArray.h>
#import <Foundation/NSDictionary.h>
#import <Foundation/NSString.h>
#import <Foundation/NSUserDefaults.h>
#import <NGCards/NGVCard.h>
#import <NGCards/CardVersitRenderer.h>
@@ -113,7 +114,7 @@
- (NGVCard *) vCard
{
NSString *info, *surname, *streetAddress, *location;
NSString *info, *surname, *streetAddress, *location, *key;
CardElement *element;
unsigned int count;
@@ -141,9 +142,20 @@
info = [ldifEntry objectForKey: @"mozillaNickname"];
if (info)
[vcard setNickname: info];
info = [ldifEntry objectForKey: @"description"];
// If SOGoLDAPContactInfoAttribute is defined, we set it
// as the NOTE value in order for Thunderbird (or any other
// CardDAV client) to display it.
key = [[NSUserDefaults standardUserDefaults]
stringForKey: @"SOGoLDAPContactInfoAttribute"];
if (!key)
key = @"description";
info = [ldifEntry objectForKey: key];
if (info)
[vcard setNote: info];
info = [ldifEntry objectForKey: @"mail"];
if (info)
[vcard addEmail: info