diff --git a/NEWS b/NEWS index ebdb2a272..d507b7b38 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ Enhancements Bug fixes - [web] fixed JavaScript exception when SOGo is launched from an external link (#3900) - [web] restored fetching of freebusy information of MS Exchange contacts + - [web] fixed mail attribute when importing an LDIF file (#3878) 3.2.3 (2016-11-25) ------------------ diff --git a/SoObjects/Contacts/NGVCard+SOGo.m b/SoObjects/Contacts/NGVCard+SOGo.m index e41d116c7..2e81e241f 100644 --- a/SoObjects/Contacts/NGVCard+SOGo.m +++ b/SoObjects/Contacts/NGVCard+SOGo.m @@ -242,6 +242,10 @@ convention: [self addElementWithTag: @"email" ofType: @"work" withValue: [ldifRecord objectForKey: @"c_emails"]]; + // When importing an LDIF file, add the default mail attribute + [self addElementWithTag: @"email" + ofType: @"work" + withValue: [ldifRecord objectForKey: @"mail"]]; homeMail = [self elementWithTag: @"email" ofType: @"home"]; [homeMail setSingleValue: [ldifRecord objectForKey: @"mozillasecondemail"] forKey: @""]; [[self uniqueChildWithTag: @"x-mozilla-html"]