From 5a8506f5afcde851c4e44a1a4e6c1ea0508f2e4b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 May 2009 08:17:43 +0000 Subject: [PATCH] Updated kolab mail method. -Made gosaSharedFolderTarget configurable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13629 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/mail/kolab/class_mail-methods-kolab.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc b/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc index adc7e4bb0..6bb0f2dfa 100644 --- a/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc +++ b/gosa-plugins/kolab/personal/mail/kolab/class_mail-methods-kolab.inc @@ -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; } } -- 2.30.2