From: hickert Date: Tue, 9 Dec 2008 07:25:20 +0000 (+0000) Subject: Updated mail method kolab X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ace60e83f4618d1f538d3b29283b994eaa0ea1f1;p=gosa.git Updated mail method kolab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13192 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 0823fd0e6..a15945d2c 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 @@ -22,6 +22,9 @@ class mailMethodKolab extends mailMethodCyrus "cyrus-userquota" => "gosaMailQuota", "kolabHomeServer" => "gosaMailServer"); + protected $user_prefix = 'user.'; + protected $share_prefix = 'shared\\.'; + protected $userObjectClasses = array("kolabInetOrgPerson"); protected $shareObjectClasses = array("kolabSharedFolder"); @@ -89,6 +92,25 @@ class mailMethodKolab extends mailMethodCyrus } + /*! \brief Checks whether this account is removeable or not. + There may be some dependencies left, eg. kolab. + */ + public function accountRemoveable(&$reason = "") + { + if(isset($this->parent->attrs)){ + $checkArray = array("kolabInvitationPolicy","unrestrictedMailSize", "calFBURL","kolabDelegate","kolabFreeBusyFuture"); + foreach($checkArray as $index){ + if(isset($this->parent->attrs[$index])){ + $reason = _("Mail settings cannot be removed while there are delegations configured!"); + return(false); + } + } + } + return(true); + } + + + /* \brief Returns the selected folder type. !! Those values are dummy values, the base class doesn't use folder types; @return Array The folde type.