#!/bin/bash
# see http://syncevolution.org/development/sync-phone

macaddress="..."
name="n900"

source=( "addressbook" "calendar+todo" "memo")
uri=( "Contacts" "Calendar"  "Notes")

syncevolution --configure \
              --sync-property syncURL=obex-bt://$macaddress \
              --sync-property remoteIdentifier='PC Suite' \
              --template nokia_7210c \
              $name

syncevolution --configure \
              --source-property type=addressbook:text/x-vcard \
              $name addressbook

syncevolution --configure \
              --source-property type=calendar:text/x-calendar \
              $name calendar

syncevolution --configure \
              --source-property type=calendar:text/x-calendar \
              $name todo

syncevolution --configure \
              --source-property type=virtual:text/x-calendar \
              $name calendar+todo

for i in 0 1 2; do
    syncevolution --configure \
                  --source-property uri=${uri[$i]}\
                  $name ${source[$i]};
done
