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, Jul 24, 8:52 PM
Unknown Object (File)
Tue, Jul 23, 9:36 PM
Unknown Object (File)
Tue, Jul 23, 11:42 AM
Unknown Object (File)
Mon, Jul 15, 1:48 PM
Unknown Object (File)
Sat, Jul 13, 7:59 PM
Unknown Object (File)
Mon, Jul 1, 5:57 AM
Unknown Object (File)
Sun, Jun 30, 6:17 AM
Unknown Object (File)
Sat, Jun 29, 9:45 PM
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