From 91a12aa8ed61eb159ddb695482a2e7c495cd74fd Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 1 Jun 2015 22:44:28 +0000 Subject: [PATCH] Add imap_errors() the fax/fax_emails.php to make it possible to see IMAP connection problems. --- app/fax/fax_emails.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/fax/fax_emails.php b/app/fax/fax_emails.php index f666c5349e..7c14a0b7ce 100644 --- a/app/fax/fax_emails.php +++ b/app/fax/fax_emails.php @@ -107,6 +107,7 @@ if (sizeof($result) != 0) { $fax_email_connection .= "/".(($fax_email_connection_validate == 'false') ? "no" : null)."validate-cert"; $fax_email_connection .= "}".$fax_email_connection_mailbox; if (!$connection = imap_open($fax_email_connection, $fax_email_connection_username, $fax_email_connection_password)) { + print_r(imap_errors()); continue; // try next account } @@ -203,7 +204,6 @@ if (sizeof($result) != 0) { //reset variables unset($fax_numbers); - } //delete email @@ -212,16 +212,13 @@ if (sizeof($result) != 0) { } } unset($authorized_senders); - } //close account connection imap_close($connection); } - } - //functions used above function load_default_settings() { global $db; @@ -312,4 +309,5 @@ function load_domain_settings($domain_uuid) { } } } + ?> \ No newline at end of file