From: hickert Date: Wed, 10 Dec 2008 10:35:38 +0000 (+0000) Subject: Added usefull debug infos. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bc37c1137f44b07925540e41534d6a5468177f8f;p=gosa.git Added usefull debug infos. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13238 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 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);