Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contacts with same uid in different address books #289

Open
sss123next opened this issue May 26, 2021 · 3 comments
Open

contacts with same uid in different address books #289

sss123next opened this issue May 26, 2021 · 3 comments

Comments

@sss123next
Copy link

good day.
i have two address books with contacts copied via evolution, copied contacts have same uid and khard does not work with such contacts, what is best/simplest way to workaround it ?

Card X from address book phone will not be available because there is already another card with the same UID: XXXXX.....
Card Y from address book phone will not be available because there is already another card with the same UID: YYYYY....
@scheibler
Copy link
Collaborator

Khard itself does not handle such cases.

But you could change the UIDs of every vcard with a small shell script.

Something like:

new_uid=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 36 | head -n 1)
sed -i "s/^UID:.*/UID:$new_uid/" example.vcf

@sss123next
Copy link
Author

thx, i will try.

@sss123next
Copy link
Author

this works, thx, but it would be nice to have ability to fix this case in khard itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants