On 20.04.2012 15:32, Achim wrote:

>> Works for me.
> 
> ... because you slightly altered the test case ;-)

No, I just copied your test case.

> BEGIN:VCARD
> VERSION:3.0
> FN:test test2
> EMAIL;type=INTERNET;type=OTHER:t...@example.com
> END:VCARD
> 
> works fine, just like your example does. This card does not work:
> 
> BEGIN:VCARD
> VERSION:3.0
> FN:test
> EMAIL;type=INTERNET;type=OTHER:t...@example.com
> END:VCARD
> 
> Please note that FN consists of only 1 "word" or element. This is also
> true for the 6 cards that I cannot import: so the problem is not the
> missing N: value [1], but the fact that FN: only has 1 element.
> 
> This could be a hidden assumption or an array handling issue somewhere,
> or is "FN:" required to have 2+ values?
> 
> Thank you in advance, Achim
> 
> [1] Which in itself is perhaps a side effect from RC trying to generate
> N: by assuming a "2-value FN:"?

Yes. All of this because you have both surname and firstname in
required_fields definition. Here one doesn't exist, that's why the
contact isn't imported. The logic is in rcube_ldap::validate() method.

I'm not sure we should do exception for import.

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
_______________________________________________
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Reply via email to