diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc
index 1d45d563f48fba359856d11917467b99018210b4..bff7beeb0397a48690f7a5d1a423d8b8a2cdf9d8 100644 (file)
}else{
$this->quotaUsage = "";
$this->gosaMailQuota = "";
- print_red(sprintf(_("Can't get quota for for '%s'."),$this->folder_prefix.$this->$id));
+ print_red(sprintf(_("Can't get quota information for '%s'."),$this->folder_prefix.$this->$id));
}
/* Get mailboxes / folder like INBOX ..*/
}
}
+
+ 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'])){
+ return(_("Waiting for kolab to remove mail properties."));
+ }elseif(in_array("gosaMailAccount",$attrs['objectClass'])){
+ return(_("Please remove the mail account first, to allow kolab to call its remove methods."));
+ }
+ }
+ }
+ }
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: