From: hickert Date: Tue, 11 May 2010 07:42:00 +0000 (+0000) Subject: removed defaults from get_cfg_value and added some missing properties. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=24f51ea26e8af20477d4c8226045590ca5b2f6d5;p=gosa.git removed defaults from get_cfg_value and added some missing properties. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18328 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc index e5cb04237..23e61cc9c 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc @@ -57,7 +57,7 @@ class mailMethodCyrus extends mailMethod{ /* Setting connect timeout to 10 seconds, else the GOsa UI may freeze for 60 seconds. (PHP default is 'default_socket_timeout = 60') */ - $timeout = $this->config->get_cfg_value("core","imapTimeout",10); + $timeout = $this->config->get_cfg_value("core","imapTimeout"); @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,$timeout, "IMAP: Setting imap connect timeout to (seconds)"); imap_timeout(1, $timeout); @@ -253,7 +253,7 @@ class mailMethodCyrus extends mailMethod{ } /* Autocreate configured default folders */ - $folders= $this->config->get_cfg_value("core","cyrusAutocreateFolders", null); + $folders= $this->config->get_cfg_value("mailAccount","cyrusAutocreateFolders"); if ($folders) { $foldersToCreate= explode(",", $folders); $cyrus_delim= $this->cyrusUseSlashes?"/":"."; @@ -289,7 +289,7 @@ class mailMethodCyrus extends mailMethod{ $cfg= $this->ServerList[$this->MailServer]; @imap_setacl ($this->imap_handle, $this->account_id, $cfg["admin"], "lrswipcda"); - if ($this->config->get_cfg_value("core","cyrusDeleteMailbox", "true") == "true"){ + if ($this->config->boolValueIsTrue("mailAccount","cyrusDeleteMailbox")){ if (!imap_deletemailbox($this->imap_handle, $cfg["connect"].$this->account_id)){ $this->error = imap_last_error(); return (FALSE);