Page MenuHomePhorge

Match default folders by regex with the dav backend
ClosedPublic

Authored by mollekopf on May 29 2024, 4:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 12, 6:50 PM
Unknown Object (File)
Sun, Feb 9, 11:37 PM
Unknown Object (File)
Sat, Feb 8, 1:31 AM
Unknown Object (File)
Mon, Feb 3, 10:00 PM
Unknown Object (File)
Sat, Feb 1, 2:01 AM
Unknown Object (File)
Thu, Jan 30, 5:42 PM
Unknown Object (File)
Thu, Jan 30, 10:36 AM
Unknown Object (File)
Wed, Jan 29, 11:35 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.May 30 2024, 8:36 AM
This revision is now accepted and ready to land.May 30 2024, 9:14 AM