summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e1de0b4)
raw | patch | inline | side by side (parent: e1de0b4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 31 May 2006 11:54:32 +0000 (11:54 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 31 May 2006 11:54:32 +0000 (11:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3583 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/mail/class_mailAccount.inc | patch | blob | history |
diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index 1d45d563f48fba359856d11917467b99018210b4..b6938636f70466dd07125eb6c93abda7dd047561 100644 (file)
}
}
+
+ function allow_remove()
+ {
+ if (isset($this->config->current['MAILMETHOD'])){
+ $method= $this->config->current['MAILMETHOD'];
+ if(preg_match("/kolab/i",$method)){
+ $ldap = $this->config->get_ldap_link();
+ $ldap->cd($this->config->current['BASE']);
+ $ldap->cat($this->dn);
+ if($ldap->count()){
+ $attrs = $ldap->fetch();
+ if((isset($attrs['kolabDeleteFlag'])) || (in_array("gosaMailAccount",$attrs['objectClass']))){
+ return("Waiting for kolabd to remove mail properties");
+ }
+ }
+ }
+ }
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: