mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-14 19:33:19 +00:00
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:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user