fmbiete / Z-Push-contrib

Z-Push fork with changes that I will try to contrib
GNU Affero General Public License v3.0
134 stars 62 forks source link

backend combinded caldav and Tasks #176

Open ghost opened 9 years ago

ghost commented 9 years ago

Hello!

I am not sure whether this is a bug or whether I have done something wrong. The Problem is, that in my Outlook 2013, my Tasks "Folders" from Zimbra appear as Calendars .

I use the combined backend with: caldav, imap and carddav

The combined backend look like this:

...... 'backends' => array( 'i' => array( 'name' => 'BackendIMAP', ), 'c' => array( 'name' => 'BackendCalDAV', ), 'd' => array( 'name' => 'BackendCardDAV', ), ), 'delimiter' => '/', //force one type of folder to one backend //it must match one of the above defined backends 'folderbackend' => array( SYNC_FOLDER_TYPE_INBOX => 'i', SYNC_FOLDER_TYPE_DRAFTS => 'i', SYNC_FOLDER_TYPE_WASTEBASKET => 'i', SYNC_FOLDER_TYPE_SENTMAIL => 'i', SYNC_FOLDER_TYPE_OUTBOX => 'i', SYNC_FOLDER_TYPE_TASK => 'c', SYNC_FOLDER_TYPE_APPOINTMENT => 'c', SYNC_FOLDER_TYPE_CONTACT => 'd', SYNC_FOLDER_TYPE_NOTE => 'c', SYNC_FOLDER_TYPE_JOURNAL => 'c', SYNC_FOLDER_TYPE_OTHER => 'i', SYNC_FOLDER_TYPE_USER_MAIL => 'i', SYNC_FOLDER_TYPE_USER_APPOINTMENT => 'c', SYNC_FOLDER_TYPE_USER_CONTACT => 'd', SYNC_FOLDER_TYPE_USER_TASK => 'c', SYNC_FOLDER_TYPE_USER_JOURNAL => 'c', SYNC_FOLDER_TYPE_USER_NOTE => 'c', SYNC_FOLDER_TYPE_UNKNOWN => 'i', ), //creating a new folder in the root folder should create a folder in one backend 'rootcreatefolderbackend' => 'i', ); } .......

The caldav backend look like this:

/ **** // BackendCalDAV settings // ****

// Server address define('CALDAV_SERVER', 'https://webmail.xxxxx');

// Port define('CALDAV_PORT', '443');

// Path define('CALDAV_PATH', '/dav/%u/');

// Default CalDAV folder (calendar folder/principal). This will be marked as the default calendar in the mobile define('CALDAV_PERSONAL', 'home');

// If the CalDAV server supports the sync-collection operation // DAViCal, SOGo and SabreDav support it // SabreDav version must be at least 1.9.0, otherwise set this to false // Setting this to false will work with most servers, but it will be slower define('CALDAV_SUPPORTS_SYNC', false);

?>

Thanks in advance!

ghost commented 9 years ago

it looks like zimbra is using a kind of virtual folder system ...

fmbiete commented 9 years ago

Your "Tasks" appears as "calendar"?

SYNC_FOLDER_TYPE_TASK => 'c',
SYNC_FOLDER_TYPE_USER_TASK => 'c',

Well, if I'm not missing too much sleep (it's possible this week :sleepy: ), your are setting Caldav to manage your tasks. We don't have a specific backend for tasks, and we are using the calendar one for it. So this would need a new backend to work...

ghost commented 9 years ago

ahh okay.. It seems that I have to wait ;-) Thanks for your respond!

ghost commented 9 years ago

If I can help you, for example with access to our zimbra server, i will be happy to do so. But unfortunately my programming experience is not good enough to to the backend by my own ...

fortiko commented 9 years ago

With DAViCal, tasks and appointments work if the corresponding "collections" exist on the caldav server:

                SYNC_FOLDER_TYPE_TASK => 'c',
                SYNC_FOLDER_TYPE_APPOINTMENT => 'c',
                SYNC_FOLDER_TYPE_USER_APPOINTMENT => 'c',
                SYNC_FOLDER_TYPE_USER_TASK => 'c',
ghost commented 9 years ago

I am not using DaviCal here. It might be that Zimbra is doing his own stuff. But on the other hand - when I add the zimbra caldav to MacOSX it seems to be working fine. I am confused..