Code

Readded gosaSharedFolderTarget to all non kolab methods.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Jul 2009 05:41:58 +0000 (05:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 1 Jul 2009 05:41:58 +0000 (05:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13857 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/personal/mail/class_mail-methods.inc

index 31bd3ed6d06c84ff688a58bb7814d551730ed68c..3035564ed9ad00badd413eba2ba8d89eca06faa9 100644 (file)
@@ -39,6 +39,13 @@ class mailMethod{
   /* Create accounts in cyrus style with '/' instead of '.' */
   protected $cyrusUseSlashes= FALSE;
 
+  /* gosaSharedFolderTarget settings, 
+   *  E.g. 
+   *    For an accountID like: 'share/herberts.folder@gonicus.de' the value 'dummy+' 
+   *    will result in gosaSharedFolderTarget: dummy+share/herberts.folder@gonicus.de
+   */
+  protected $gosaSharedPrefix = '';  
+
   /* The atribute mapping for this class  Source --> Destination */
   protected $attributes     = array();
   protected $userObjectClasses = array();
@@ -220,6 +227,12 @@ class mailMethod{
         $this->parent->attrs['objectClass'][] = $oc;
       }
     }
+  
+    // Add gosaSharedFolderTarget for groups.
+    if($this->type == "group"){ 
+      $this->parent->attrs['gosaSharedFolderTarget'] = 
+        $this->gosaSharedPrefix.$this->account_id;
+    }
   }