On 12.04.2012 12:02, Achim wrote:
Hello again:
The exports from my RC SQL address book look like this:
BEGIN:VCARD VERSION:3.0 FN:John Doe EMAIL;type=INTERNET:john.doe@example.com END:VCARD
Importing that kind of card fails silently.
Manually adding the N line and editing the email line to read like this (adding ";type=WORK")
N:Doe;John;;; EMAIL;type=INTERNET;type=WORK:john.doe@example.com
so that the final VCF looks like this:
BEGIN:VCARD VERSION:3.0 N:Doe;John;;; FN:John Doe EMAIL;type=INTERNET;type=WORK:john.doe@example.com END:VCARD
makes the import from a default RC sql export work. Two observations:
The problem is with 'required_fields' in addressbook config. Also when handling VCARD data FN is mapped to displayname.
Maybe we can modify rcube_ldap::validate() to fill 'name' with displayname, if it's empty but 'displayname' exists. I'm not sure if it's all, this can be config dependent.
You should create a ticket for this.