diff --git a/emailadmin/inc/class.emailadmin_imap.inc.php b/emailadmin/inc/class.emailadmin_imap.inc.php index bd11149fd1..d2262f3f2e 100644 --- a/emailadmin/inc/class.emailadmin_imap.inc.php +++ b/emailadmin/inc/class.emailadmin_imap.inc.php @@ -417,7 +417,16 @@ class emailadmin_imap extends Horde_Imap_Client_Socket implements defaultimap */ function getCurrentMailbox() { - $mailbox = $this->currentMailbox(); + try + { + $mailbox = $this->currentMailbox(); + } + catch(Exception $e) + { + error_log(__METHOD__.' ('.__LINE__.') failed fetching currentMailbox:'.$e->getMessage()); + //throw new egw_exception(__METHOD__.' ('.__LINE__.") failed to ".__METHOD__." :".$e->getMessage()); + unset($e); + } if (!empty($mailbox)) return $mailbox['mailbox']; if (empty($mailbox) && $this->mailboxExist('INBOX')) return 'INBOX'; return null;