From bc37c1137f44b07925540e41534d6a5468177f8f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Dec 2008 10:35:38 +0000 Subject: [PATCH] Added usefull debug infos. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13238 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/class_mail-methods-cyrus.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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 dc1bc39c8..dd377f10f 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc @@ -56,9 +56,15 @@ class mailMethodCyrus extends mailMethod{ /* Mailbox reachable? */ if ($this->imap_handle === FALSE){ $this->error = imap_last_error(); + + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"Failed :".imap_last_error(), + "IMAP: ".$cfg['admin']."@".$cfg['connect']); + return (FALSE); $this->connected = FALSE; } + @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__,"successful", + "IMAP: ".$cfg['admin']."@".$cfg['connect']); $this->connected = TRUE; return (TRUE); -- 2.30.2