Page MenuHomePhorge

Match default folders by regex with the dav backend
ClosedPublic

Authored by mollekopf on Wed, May 29, 4:16 PM.
Tags
None
Referenced Files
F12959256: D4719.id.diff
Sun, Jun 23, 5:53 AM
Unknown Object (File)
Sat, Jun 22, 9:31 PM
Unknown Object (File)
Sat, Jun 22, 9:09 PM
Unknown Object (File)
Sat, Jun 22, 2:45 PM
Unknown Object (File)
Sat, Jun 22, 8:11 AM
Unknown Object (File)
Thu, Jun 20, 10:55 PM
Unknown Object (File)
Thu, Jun 20, 10:37 AM
Unknown Object (File)
Mon, Jun 17, 3:51 AM
Subscribers
None

Details

Summary

This is required for outlook because a default folder is required.

Diff Detail

Repository
rS syncroton
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mollekopf created this revision.

This will require something like this:

diff --git a/plugins/libkolab/lib/kolab_storage_dav.php b/plugins/libkolab/lib/kolab_storage_dav.php
index 92b4196e..91eda738 100644
--- a/plugins/libkolab/lib/kolab_storage_dav.php
+++ b/plugins/libkolab/lib/kolab_storage_dav.php
@@ -554,6 +554,7 @@ class kolab_storage_dav
      */
     public static function get_dav_type($type)
     {
+        $type = preg_replace('/\.(default)$/i', '', $type);
         $types = [
             'event' => 'VEVENT',
             'task'  => 'VTODO',

I'm not sure if we should avoid modifying the type in the first place, or translate back someplace else.

Don't include the .default suffix in the folder id

A better place to do this is in the libkolab plugin. See https://git.kolab.org/rRPK905644dc6c5e256c42f3a6a422601759ea0a47cd

This revision now requires changes to proceed.Thu, May 30, 8:36 AM
This revision is now accepted and ready to land.Thu, May 30, 9:14 AM