Package: libmultisync-plugin-evolution Version: 0.82-5 Severity: important Tags: patch
Evolution 2 generates vcard version 3.0 address book records, some phones synced with syncml do not support this, but mulitsync does not convert to version 2.1 (or whatever the phone advertises as supported). This problem could be resolved in multisync, libmultisync-plugin-evolution or libmultisync-plugin-syncml. It turns out that vcard v2.1 and v3.0 are very similar and at least for my addressbook, converting between the two is simply a matter of changing the version number. This is not a great solution as it will fall over when or if evolution generates a v3.0 feature that my phone does not understand. The authors of multisync are working on a major refactoring (libopensync) which will allow an elegant solution to this problem. In the meantime I have created a nasty hack which may or may not be of interest. See http://sourceforge.net/mailarchive/forum.php?thread_id=7029201&forum_id=12899 diff -rc multisync_orig/plugins/evolution2_sync/src/evolution_sync.c multisync/plugins/evolution2_sync/src/evolution_sync.c *** multisync_orig/plugins/evolution2_sync/src/evolution_sync.c Sat Nov 27 05:08:20 2004 --- multisync/plugins/evolution2_sync/src/evolution_sync.c Fri Apr 15 10:44:55 2005 *************** *** 176,181 **** --- 176,192 ---- ebc = (EBookChange *)object; EVCard vcard = ebc->contact->parent; *data = e_vcard_to_string(&vcard, EVC_FORMAT_VCARD_30); + { + // this is a hack by [EMAIL PROTECTED] to make evolution 2 work + // with Siemens SyncML phones. So far, the only property of the + // version 3 vcard that needs changing is the version number. See + // this outdated wiki page: + // http://wiki.ciaweb.net/yawiki/index.php?area=Contact_Vcard&page=HomePage&dt=2004-03-13%2019:01:23 + char *offset = strstr(*data, "VERSION:3.0"); + if (offset) { + memcpy(offset, "VERSION:2.1", strlen("VERSION:2.1")); + } + } *uid = e_contact_get_const(ebc->contact, E_CONTACT_UID); //*datasize = strlen(*data) + 1; switch (ebc->change_type) { -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.10 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages libmultisync-plugin-evolution depends on: ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit ii libbonobo2-0 2.8.1-2 Bonobo CORBA interfaces library ii libbonoboui2-0 2.8.1-2 The Bonobo UI library ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libebook8 1.0.4-1 Client library for evolution addre ii libecal6 1.0.4-1 Client library for evolution calen ii libedata-book1 1.0.4-1 Backend library for evolution addr ii libedata-cal5 1.0.4-1 Backend library for evolution cale ii libedataserver3 1.0.4-1 Utily library for evolution data s ii libgconf2-4 2.8.1-5 GNOME configuration database syste ii libglib2.0-0 2.6.3-1 The GLib library of C routines ii libgnome2-0 2.8.1-2 The GNOME 2 library - runtime file ii libgnomecanvas2-0 2.8.0-1 A powerful object-oriented display ii libgnomeui-0 2.8.1-3 The GNOME 2 libraries (User Interf ii libgnomevfs2-0 2.8.4-2 The GNOME virtual file-system libr ii libgtk2.0-0 2.6.2-4 The GTK+ graphical user interface ii libice6 4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library ii liborbit2 1:2.12.1-1 libraries for ORBit2 - a CORBA ORB ii libpango1.0-0 1.8.1-1 Layout and rendering of internatio ii libpopt0 1.7-5 lib for parsing cmdline parameters ii libsm6 4.3.0.dfsg.1-12.0.1 X Window System Session Management ii libxml2 2.6.16-6 GNOME XML library ii multisync 0.82-5 A program to synchronize PIM data ii xlibs 4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu ii zlib1g 1:1.2.2-3 compression library - runtime -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]