From 4f3eda982e70288a3130526b32d953370c65e12b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 1 Jul 2009 05:41:58 +0000 Subject: [PATCH] Readded gosaSharedFolderTarget to all non kolab methods. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13857 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/class_mail-methods.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods.inc b/gosa-plugins/mail/personal/mail/class_mail-methods.inc index 31bd3ed6d..3035564ed 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods.inc @@ -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; + } } -- 2.30.2