Closed ligurio closed 4 years ago
Khard doesn't support multiple vcards in a single file.
You could try the following:
Synchronize your Google account with vdirsyncer: https://www.mankier.com/1/vdirsyncer#Full_Configuration_Manual-Google Maybe Vdirsyncer splits the contacts automatically (didn't try that myself).
I've written a Python script to split CalDAV files for my local calendar: https://www.eric-scheibler.de/en/blog/2014/10/Sync-calendars-and-address-books-between-Linux-and-Android/#import-calendars You could try to adapt the script for CardDav.
@scheibler Thanks! Using multiple vcards is not an option. I'm using Baikal as a CardDAV/CalDAV server and DAVx5 as connector to it on Android. Both applications shows each vcard as a separate address book. So I see about 600 address books on as server and in DAVx5.
Using multiple vcards is not an option. I'm using Baikal as a CardDAV/CalDAV server and DAVx5 as connector to it on Android. Both applications shows each vcard as a separate address book. So I see about 600 address books on as server and in DAVx5.
I can't speak for Baikal, but DAVx5 isn't your problem here. I have an address book synchronised with DAVx5 via a radicale server and it works fine. It may be your vdirsyncer or Baikal settings.
Found an option type
with possible values "singlefile"
and "filesystem"
in vdirsyncer. With singlefile
vdirsyncer uses one file per calendar/addressbook and with filesystem
vdirsyncer uses multiple files per calendar/addressbook. Perhaps it possible resolves my issue.
If someone wants to write support for single file address books in khard they could write a new class in address_book.py. But a thorough inspection has to be made before that because other code (e.g. the CarddavObject class) depend on the filename of the vcards. It might involve some bigger refactoring.
Hello,
I'm imported addressbook from contats.google.com. It is a single file with vcards inside.
khard
cannot parse files with a reasonWARNING:root:Card from address book personal has no UID and will not be availbale. Address book: personal
. How to usekhard
with vcards in a single file?Example:
With debug option:
Version: Khard version 0.13.0