Skip to content. Skip to navigation

Jan Torbens homepage

You are here: Home public stuff Howto sync kaddressbook and korganizer with opensync on KDE4
Document Actions

Howto sync kaddressbook and korganizer with opensync on KDE4

by jtheuer last modified 2009-06-07 14:16

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.

Download: vcardsplit.pl

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

Posted by Arno Nühm at 2009-05-01 17:04
Your script code is broken...

Updated

Posted by jtheuer at 2009-05-01 21:48
I updated the code to a slightly newer version, however the older version worked on my system. What was broken?

Bug

Posted by Matthias Riese at 2009-05-17 11:31
The blog software has killed everything that looks like a HTML tag in your code. For example
while (my $line = )
instead of
while (my $line = _INPUT_)

So is there a way to get good code?

Posted by Francois Rey at 2009-06-07 13:53
Following up on Matthias's comment, would you be able to get us a proper version of code? Maybe a download somewhere?

Link to the script

Posted by jtheuer at 2009-06-07 14:40
I replaced the embeded code with a link...

I have no kitchensync in KDE4 packages

Posted by Murz at 2009-12-22 15:54
I have using KDE 4.3 & try KDE 4.4 beta2 on Kubuntu Karmic, but can't find kitchensync file or package:
$ kitchensync
kitchensync: command not found
$ aptitude search kitchen
<empty>

Where can I get kichensync for Kubuntu KDE 4.x?

kitchensync

Posted by jtheuer at 2009-12-22 16:26
Good question, I don't have it anymore, too. Instead i use the opensync tool directly (just run msynctool on the commandline)

HTH

works great!

Posted by ean at 2010-02-03 02:20
I use it with irmc plugin to synchronize (one way) my Siemens s65 mobile with kaddressbook via bluetooth. Wrote a shell script -- et voila! a on click sync (Gosh! All these long night have an end now...).

Thanks!

Let's see how and when kdepim4-sync plugin comes up.