View Issue Details

IDProjectCategoryView StatusLast Update
0001430SOGoWeb Address Bookpublic2011-08-24 14:46
Reportergmiller001 Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.3.8a 
Summary0001430: Can't change email addresses in address book
Description

Freshly installed SOGo server on CentOS 6. I exported my TB address book to LDIF, installed the connector and integrator, then imported the LDIF address book back into the SOGo web interface. All of my addresses are there, everything seems to be working as it should. I tried to edit the email address of a contact using the web interface. When I re-saved the contact, the old email address still showed in the contacts list. I re-opened the contact to find that the old email address has been moved to the "Additional Email" field, and the new email address is in the "Email" field. I have attempted to delete "Additional Email" and re-save the contact several times, but the old email address keeps returning. Exporting the contact using LDIF shows the new email address in the "mozillaSecondEmail" field.

Additional Information

dn:: Y249R3JlZyBNaWxsZXIsbWFpbD1nbWlsbGVyQGNvbW1vLmNvbQ0=
mail:: Z21pbGxlckBjb21tby5jb20N
cn: Greg Miller
givenName: Greg
o: CAI
mozillaSecondEmail: gmiller@conley-inc.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
modifytimestamp: 0Z
sn: Miller

TagsNo tags attached.

Activities

2011-08-24 06:04

 

avoegele

avoegele

2011-08-24 14:46

reporter   ~0002822

I think that the described problem is caused by the way email addresses are looked up and stored in UI/Contacts/UIxContactEditor.m. The method _setupEmailFields first looks for addresses of type "work" and "home". If no email address of these types is found, the list of email addresses is searched and the addresses imported from Thunderbird, which have no type, will be used.

On the other hand, the method _saveEmails always sets the email addresses' type to "work" or "home". Existing email addresses that lack a type won't be replaced. Instead, _saveEmails will store additional addresses of type "work" and "home". The typed email addresses will be preferred by SOGo over the addresses imported from Thunderbird. If the email addresses created by SOGo are deleted, the addresses imported from Thunderbird, which still exist in the database, are shown again.

Issue History

Date Modified Username Field Change
2011-08-24 06:04 gmiller001 New Issue
2011-08-24 06:04 gmiller001 File Added: Screenshot-CAI Groupware System - Mozilla Firefox.png
2011-08-24 14:46 avoegele Note Added: 0002822