Code

Updated kolab mail method.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 May 2009 08:17:43 +0000 (08:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 May 2009 08:17:43 +0000 (08:17 +0000)
-Made gosaSharedFolderTarget configurable

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13629 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index adc7e4bb02c86c5201fbaefcec1a7a2cf990f711..6bb0f2dfa21d415ff73a139137f2d53d7506e003 100644 (file)
@@ -29,6 +29,13 @@ class mailMethodKolab extends mailMethodCyrus
   protected $user_prefix    = 'user.';
   protected $share_prefix   = 'shared\\.';
 
+  /* gosaSharedFolderTarget settings, 
+      E.g. 
+        AccountID = 'shared/herberts.folder@gonicus.de' 
+        'kolab+' will result in gosaSharedFolderTarget: kolab+shared/herberts.folder@gonicus.de
+   */
+  protected $gosaSharedPrefix = 'kolab+';  
+
   /* Account ID creation */
   protected $user_id    = "%prefix%%uattrib%";  
   protected $share_id   = "%prefix%%cn%@%domain%";
@@ -64,7 +71,8 @@ class mailMethodKolab extends mailMethodCyrus
     /* The folderType is set by ::setFolderType(...) */
     $this->parent->attrs['kolabFolderType'] = array();
     if($this->type == "group"){ 
-      $this->parent->attrs['gosaSharedFolderTarget'] = "kolab+shared.".$this->parent->mail;
+      $this->parent->attrs['gosaSharedFolderTarget'] = 
+        $this->gosaSharedPrefix.$this->account_id;
     }
   }