From 24f51ea26e8af20477d4c8226045590ca5b2f6d5 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 May 2010 07:42:00 +0000 Subject: [PATCH] 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 --- .../mail/personal/mail/class_mail-methods-cyrus.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2