Howto sync kaddressbook and korganizer with opensync on KDE4
At the moment, opensync support for KDE4 does not exists. I wrote a small filewrapper in order to sync my kaddressbook and korganizer entries with my phone.
Prequesites
Make sure that your OpenSync installation works. My small tutorial starts at the point where you can access your phone with the appropriate provider. So let's start with adding the file-plugin. First, start kitchensync and add a new group, which we'll call "filesync". To this group add the file plugin member. If it is not available, you'll have install the opensync-file-plugin first. Configure and create directory where we'll later store all files that shall be synced. Then, close kitchensync.
Open a terminal and enter msynctool --addmember filesync yourmobilephoneplugin. It may be easier to to this step also in kitchensync but in my case it was easier to use the commandline.
The script
The file-plugin can only handle one-entry-per-file, so we need a small script which will split the vcf file of kaddressbook into several files. Store the following file as /usr/local/bin/vcardsplit.pl and make it executable.
Go to the folder which you selected for the file-plugin and enter: vcardsplit /path/to/std.vcf. The file may be in ~/.kde/share/apps/kaddressbook/std.vcf but check it first. Finally, you can run msynctool --sync filesync
- Todo:
-
- Make sync-back possible (difficult)
- Write a kaddressbook sync script
Bug
Updated
Bug
while (my $line = )
instead of
while (my $line = _INPUT_)
So is there a way to get good code?
I have no kitchensync in KDE4 packages
$ kitchensync
kitchensync: command not found
$ aptitude search kitchen
<empty>
Where can I get kichensync for Kubuntu KDE 4.x?
kitchensync
HTH
works great!
Thanks!
Let's see how and when kdepim4-sync plugin comes up.