From: hickert Date: Mon, 20 Jul 2009 07:32:18 +0000 (+0000) Subject: Made impa timeout settings configureable. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=29c0d3785b00c3a33766b25a279a2e0e94dc5154;p=gosa.git Made impa timeout settings configureable. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13938 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 8816e39fb..6bfde61c7 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,11 @@ 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') */ - imap_timeout(1, 10 ); + $timeout = $this->config->get_cfg_value("imapTimeout",10); + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,$timeout, + "IMAP: Setting imap connect timeout to (seconds)"); + imap_timeout(1, $timeout); + $this->imap_handle = @imap_open($cfg['connect'], $cfg['admin'], $cfg['password'], OP_HALFOPEN); /* Mailbox reachable? */