on the phone
When you have the calendar sync already running it's as simple as:
First start ssh on the n900 to ease typing:
apt-get install dropbear echo /bin/sh >> /etc/shells cd /etc/dropbear && ./run
SSH into the phone and configure contacts synchronization:
cat <<EOF > ~/.config/syncevolution/webdav/sources/addressbook/config.ini backend = CardDAV database = https://carddav.example.com/contacts/username EOF
And perform the initial sync:
syncevolution --sync slow webdav addressbook
From there on you can sync contacts and calendars in one go with:
Looking at the calypso logs on the server it seems that syncevoluton does not always generate an FN entry and so the card gets skipped. This doesn't harm the overall sync, but I need to have a look how to fix this.
on the laptop
sudo apt-get install pycarddav mkdir -p ~/.config/pycard cp /usr/share/doc/pycarddav/examples/pycard.conf.sample ~/.config/pycard/pycard.conf # Edit file as needed cat ~/.config/pycard/pycard.conf [Account username] user: username resource: https://carddav.example.com/ write_support = YesPleaseIDoHaveABackupOfMyData [query] where: vcard [sqlite] [default] debug: False
To use the entries in mutt add the just extend your .muttrc:
cat <<EOF >>~/.muttrc set query_command="pc_query -m %s" macro index,pager B "<pipe-message>pycard-import<enter>" "add sender address to pycardsyncer" EOF
This allows you to query contacts using Q and add new conatcs with CTRL-B in mutt's index and pager.