lucc / khard

Console vcard client
https://khard.readthedocs.io/en/latest/
GNU General Public License v3.0
595 stars 66 forks source link

No UID, and will not be available error #288

Closed poetaman closed 1 year ago

poetaman commented 3 years ago

I exported all of my contacts as in .vcf format on macOS, and copied it under the ./contacts/friends directory configured in khard.conf file. Trying to query any contacts results in this error:

Card \<Name> from address book friends has no UID and will not be available.

I get the sample problem with contacts exported from google contacts, which makes importing impossible...

Can khard ask user if they want it to automatically add uids? Or suggest an application that does that. That way one can use existing contacts from Google contacts, and Apple contacts among others...

lucc commented 3 years ago

Maybe you can use vdirsyncer to sync with google. The docs have a section on this.

If you want to try you can manually (or with a script) add some UID:something lines to the vcard files. The line needs to be between the BEGIN:VCARD and END:VCARD lines and not before the VERSION:... line. The value of the uid field does not matter as long as it is unique (you could even copy the file name). khard will complain if the uids are not unique.

lucc commented 1 year ago

Closing due to inactivity.