dupondje / PHP-Push-2

Z-Push Fork With CalDAV/LDAP Support
GNU Affero General Public License v3.0
67 stars 24 forks source link

CardDAV backend #48

Closed fmbiete closed 12 years ago

fmbiete commented 12 years ago

Added a CardDAV backend to your Combined backend. I have it working with a DaviCal server, with the combined IMAP, CalDAV, CardDAV, to get contacts, calendar and mail to my clients.

It's based in the following work: https://github.com/xbgmsharp/sogosync.git plus a few fixes to work with DaviCal

dupondje commented 12 years ago

Last commit (a6f481b) has some indent issues :) else it looks fine.

Did you already test this? Its working perfect? Any notes, things we need to know? All used libs are GPL?

fmbiete commented 12 years ago

Yes, I have it working with a DaviCal server. I tested it with a iPad device. The iPad sync contacts already existent in the CardDAV principal, and the new contacts created in the iPad are pushed and are synced in others CardDAV clients (Roundcube mail and thunderbird).

It is hardcoded to support only one addressbook (principal) by user. By now I must limit this, because our users cannot create more than one addressbook. And the principal (daviCal collections) are predefined before the user is created.

SogoSync is a Z-push fork and it's AGPL licensed. CardDAV client it's also AGPL licensed.

ghost commented 12 years ago

fmbiete, mind letting us know how to open up the backend to support multiple and not predfined addressbooks?