Example script added.
diff --git a/ChangeLog b/ChangeLog
index 852ae37..48b6e8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-25  Linus Walleij <triad@df.lth.se>
+
+	* examples/evolution-sync.sh: example script to illustrate
+	  to to transfer calendar, task and contact information
+	  to a device supporting this.
+
 2006-09-19  Linus Walleij <triad@df.lth.se>
 
 	* src/libmtp.h.in: fixed attribute IDs to be 16bit.
diff --git a/README b/README
index 59f6964..cda09d6 100644
--- a/README
+++ b/README
@@ -108,5 +108,15 @@
 - Some devices are picky about the name of the calendar and
   contact files. For example the Zen Microphoto wants:
 
-  Calendar: My Organizer/6651415.ics
-  Contacts: My Contacts/6651416.vcf
+  Calendar: My Organizer/6651416.ics
+  Contacts: My Organizer/6651416.vcf
+
+
+Syncing in with Evolution and Creative Devices
+----------------------------------------------
+
+Evolution can easily export .ics an .vcf files, but you currently
+need some command-line hacking to get you stuff copied over in
+one direction host -> device. The examples/ directory contains a script
+created for the Creative Zen Microphoto by Nicolas Tetreault.
+
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 7c2f935..7bcbc0e 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -19,3 +19,4 @@
 
 AM_CFLAGS=-I$(top_builddir)/src
 LDADD=../src/libmtp.la
+EXTRA_DIST=evolution-sync.sh
diff --git a/examples/evolution-sync.sh b/examples/evolution-sync.sh
new file mode 100755
index 0000000..c811aa3
--- /dev/null
+++ b/examples/evolution-sync.sh
@@ -0,0 +1,90 @@
+#!/bin/bash
+
+# Define target files
+SYNC_HOME=$HOME/MTP_device_sync
+
+# Define tool locations
+SENDFILE=`which mtp-sendfile`
+# SENDFILE="$HOME/comp-apps/bin/sendfile"
+#EADDEXP=`which evolution-addressbook-export`
+# This is the location in Fedora Core 5:
+EADDEXP="/usr/libexec/evolution/2.6/evolution-addressbook-export"
+
+# You need to change the name of the files
+# that contains the calendar and contacts on your device. 
+# You can find out by  starting Gnomad2, choose the data transfer 
+# tab, sort by size (it should be small files, extension .ics and .vcf)
+# On my Zen Microphoto, the calendar and contacts files are called
+# 6651416 with the ics and vcf extensions, respectively.
+CALENDAR_FILE="6651416.ics"
+CONTACTS_FILE="6651416.vcf"
+
+# The evolution address book. To list your addressbooks, type:
+# evolution-addressbook-export -l
+# the output for me:
+# "file:///home/nt271/.evolution/addressbook/local/system
+# ","Personal",26
+# "file:///home/nt271/.evolution/addressbook/local/1158600180.5386.0@sierra"
+# ,"MicroPhoto",24
+# I only want the Microphoto addressbook and the output will be
+# $SYNC_HOME/contacts/Evolution_contacts.vcf
+EVOLUTION_CONTACTS="file:///home/linus/.evolution/addressbook/local/system"
+
+# Check for sync dir, create it if needed
+
+if test -d $SYNC_HOME ; then
+    echo "$SYNC_HOME exists, OK."
+else
+    echo "$SYNC_HOME must first be created..."
+    mkdir $SYNC_HOME
+    # This is a working dir for contact merging, you can put
+    # in some extra .vcf files here as well if you like.
+    mkdir $SYNC_HOME/contacts
+    # Here you can place some extra calendars to be sync:ed, you
+    # can put in some extra .ics files of any kind here.
+    mkdir $SYNC_HOME/calendars
+fi
+
+# Check for prerequisites
+
+if test -f $EADDEXP ; then
+    echo "evolution-addressbook-export present in $EADDEXP, OK."
+else
+    echo "Cannot locate evolution-addressbook-export!!"
+    exit 0
+fi
+
+
+# Next line merges all of your tasklist, your personal calendar, 
+# and then any saved to disk calendar you have placed in
+# $SYNC_HOME/calendars
+
+cat $HOME/.evolution/tasks/local/system/tasks.ics \
+    $HOME/.evolution/calendar/local/system/calendar.ics \
+    $SYNC_HOME/calendars/*.ics > $SYNC_HOME/$CALENDAR_FILE
+
+# Use evolution-addressbook-export (installed with Evolution) to
+# export your contacts to vcard.
+
+$EADDEXP --format=vcard \
+    --output=$SYNC_HOME/contacts/Evolution_contacts.vcf \
+    $EVOLUTION_CONTACTS
+
+# Repeat for each addressbook you want to upload.
+
+# The next command will then merge all the contact lists
+
+cat $SYNC_HOME/contacts/*.vcf > $SYNC_HOME/$CONTACTS_FILE
+
+# The calendar and contacts files now need to be converted from unix
+# to DOS linefeeds (CR+LF instead of just LF)
+
+unix2dos $SYNC_HOME/$CALENDAR_FILE $SYNC_HOME/$CONTACTS_FILE
+
+# You can now upload the ics and vcf files to you My Organizer folder
+# on your device. Change the path to your sendfile command.
+# Sending the vcf file is only supported in CVS version at this time
+
+$SENDFILE -f "My Organizer" -t ics $SYNC_HOME/$CALENDAR_FILE
+$SENDFILE -f "My Organizer" -t vcf $SYNC_HOME/$CONTACTS_FILE
+