summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83df3f5)
raw | patch | inline | side by side (parent: 83df3f5)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 May 2005 11:16:10 +0000 (11:16 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 18 May 2005 11:16:10 +0000 (11:16 +0000) |
include/class_mail-methods-cyrus.inc | patch | blob | history |
index 239cd2e8a10522f10576c7701a2ab7246be7dfeb..b497200748a8a4b0136210458713fcdd59435699 100644 (file)
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+function fake_handler($log_level, $log_text, $error_file, $error_line)
+{
+}
class mailMethodCyrus extends mailMethod
{
function connect($gosaMailServer)
{
/* Connect to IMAP server. I don't want to see these warning here... */
- error_reporting (0);
$this->gosaMailServer= $gosaMailServer;
$cfg= $this->config[$gosaMailServer];
+
+ /* For some reason, hiding errors with @ does not wor here... */
+ $tmp= set_error_handler('fake_handler');
$this->mbox = @imap_open($cfg['connect'], $cfg['admin'], $cfg['password'], OP_HALFOPEN);
- error_reporting (E_ALL);
+ set_error_handler($tmp);
/* Mailbox reachable? */
if ($this->mbox === FALSE){