Univention Bugzilla – Bug 46040
ox-user listener should use --email2 und --email3 for mailAlternativeAddresses
Last modified: 2021-05-14 17:00:47 CEST
Currently the ox user listener stores mailAlternativeAddresses only in OX' --alias field. The UI won't show those addresses in either the address book or the autocompletion of the mail-compose window. The ox-user listener should use --email2 und --email3 for mailAlternativeAddresses. Two problems cannot be solved (AFAIK): * if more than 2 mailAlternativeAddresses exist, only 2 of them can be set with the CLI/HTTP/SOAP * the order in which mailAlternativeAddresses are read from LDAP may differ to that shown in UMC
--email2 and --email3 are currently mapped via extended attributes to "E-Mail privat" and "E-Mail weitere" in UDM. ./univention-ox/share/attrlist.csv:"oxUserObject","users/user","oxEmail2","oxEmail2","Email private","Email private","E-Mail privat","E-Mail privat","Contact","Kontakt",0,0,"oxEmail2","emailAddress",0,,1,0,1,"None",17,"None",0,0,"--email2","Email2","Private","Privat",,, ./univention-ox/share/attrlist.csv:"oxUserObject","users/user","oxEmail3","oxEmail3","Email other","Email other","E-Mail weitere","E-Mail weitere","Contact other","Kontakt Weiteres",0,0,"oxEmail3","emailAddress",1,,1,0,1,"None",9,"None",0,0,"--email3","Email3",,,,, Did we missed a change in the purpose of those CLI arguments (--email2/3)?
For the customers purpose I can imagine two possible solutions: * a UDM hook could copy the contents of mailAlternativeAddress to oxEmail2 and oxEmail3 * the customer uses ox/listener/user/ldap/attributes/mapping/ldap2ox to map the 1st mailAlternativeAddress to oxEmail2. I don't see how a 2nd mailAlternativeAddress could be mapped to oxEmail3 with this method, though. The 1st solution would need a handling for manually modified oxEmail2/3 fields. Not as complicated as with oxDisplayName, because no default handling is required.
should be still relevant for UCS 4.4 / OX 7.10