[sync] Empty CNs with some vCards
Karsten Fourmont
fourmont at gmx.de
Tue Oct 31 03:53:44 PST 2006
> 2. why is firstname AND lastname mandatory ?
Never said so. I've been referring to the vcard (2.1) specification
from www.imc.org. (http://www.imc.org/pdi/vcard-21.doc)
In a vcard, the "N" attribute specifies the name as follows:
N:last_name;first_name;addidional_names;name_prefix;name_suffix
The N attribute itself is mandatory. However individual fields may be empty.
On the other hand, the FN fields is completly optional.
So if you only have one name field in your database, how would you
deal with an entry
N:Mouse;Mickey;;;
FN:Donald Duck
Would you store Donald or Mickey? Currently Turba stores "Mickey
Mouse" as this is from the mandatory field.
But then, what wouls you store as name for this:
N:;;;;
FN:Donald Duck
Donald or empty? In this case Turba chooses "Donald Duck". An FN value
is better than nothing.
Turbas data fields are completly user configurable. Generally it's
better to have seperate first and last name fields. To do so, see my
post on Oct 15th about "Re: [sync] Syncing Turba contacts"
You could also configure your Turba config so that you have first
name, last name and name (FN, displayname) as three completly seperate
fields.
Cheers,
Karsten
Quoting Sven Heuer <s.heuer at hicom.de>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> 1. i think overwriting of mandatory attributes with other Values is not
> usable. Either i can handle it or not !
>
> 2. why is firstname AND lastname mandatory ?
>
>
> The usage of FN in Outlook and other Clints is "Save/Display as" with
> variants:
>
> lastname, firstname
> firstname lastname
> company
> lastname, firstname (company)
> company (lastname, firstname)
>
> In my opinion mandatory attributes firstname OR lastname OR company in
> any combination are sufficient.
>
>
>
> bugs at bugs.horde.org wrote:
>> DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
>>
>> Ticket URL: http://bugs.horde.org/ticket/?id=4509
>> -----------------------------------------------------------------------
>> Ticket | 4509
>> Updated By | Karsten Fourmont <karsten at horde.org>
>> Summary | Empty CNs with some vCards
>> Queue | Turba
>> Version | HEAD
>> Type | Bug
>> State | Assigned
>> Priority | 1. Low
>> Owners | Karsten Fourmont
>> -----------------------------------------------------------------------
>>
>>
>> Karsten Fourmont <karsten at horde.org> (2006-10-28 08:02) wrote:
>>
>> We currently have only one name field in turba and so have to deceide
>> whether to store info from "N" or "FN".
>> The "N" attribute currently overwrites the "FN" attribute as the latter is
>> optional while the former is mandatory. However in cases where firstname
>> and lastname in "N" are empty, the FN should be used to avoid empty
>> names.
>>
>> Implemented accordingly in cvs. IMHO resolved.
>>
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
>
> iD8DBQFFRy59XOfGByLZzqgRAh/0AJ96ywBJdmuWl2xHmHq2zZ8TfEsg2gCggdJH
> 11RVUIQRIDcWRuHZznbnSZ4=
> =bt+n
> -----END PGP SIGNATURE-----
> --
> sync mailing list - Join the hunt: http://horde.org/bounties/#sync
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sync-unsubscribe at lists.horde.org
>
More information about the sync
mailing list