Not *directly* related to this but there is a Python CardDav client that works well with owncloud, it's called pycarddav. I'm using it to connect to the owncloud carddav server from mutt. -- Chris Green