lib/kolab_sync_backend.php

Aleksander Machniak machniak at kolabsys.com
Mon Aug 27 20:56:39 CEST 2012


 lib/kolab_sync_backend.php |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit c602af82c329e33da314744cc05f06519ce67c41
Author: Aleksander Machniak <alec at alec.pl>
Date:   Mon Aug 27 20:55:59 2012 +0200

    Fix so INBOX is subscribed by default again, subscribe task.default folder by default too

diff --git a/lib/kolab_sync_backend.php b/lib/kolab_sync_backend.php
index 1ecef46..1d2923d 100644
--- a/lib/kolab_sync_backend.php
+++ b/lib/kolab_sync_backend.php
@@ -376,7 +376,6 @@ class kolab_sync_backend
 
             // Subscribe to default folders
             $foldertypes = $this->storage->get_metadata('*', kolab_storage::CTYPE_KEY);
-            $folders     = array('INBOX');
             $types       = array(
                 'mail.drafts',
                 'mail.wastebasket',
@@ -384,6 +383,7 @@ class kolab_sync_backend
                 'mail.outbox',
                 'event.default',
                 'contact.default',
+                'task.default',
             );
 
             $foldertypes = array_map('implode', $foldertypes);
@@ -396,6 +396,8 @@ class kolab_sync_backend
                     $this->folder_set($folder, $id, 1);
                 }
             }
+            // INBOX always exists
+            $this->folder_set('INBOX', $id, 1);
         }
 
         return $result;





More information about the commits mailing list