X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fimap_general.php;h=4909543926f948ceb319a3bb67adb24efe963b81;hb=e7e73ef125c92d67216a73b9519b648eb872fa1f;hp=165a02a50051ccc1935bc2cb491ba1488e66b558;hpb=2ba138034e8cf69a80201035e0abdb51af93083d;p=squirrelmail.git diff --git a/functions/imap_general.php b/functions/imap_general.php index 165a02a5..49095439 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -1,25 +1,49 @@ $read
\n"; - flush(); - } - $size = -1; $data[] = $read; $read = fgets($imap_stream, 9096); @@ -66,13 +82,6 @@ $imap_general_debug = false; while (strpos($read, "\n") === false) { $read .= fgets($imap_stream, 9096); } - - // For debugging purposes - if ($imap_general_debug) { - echo "$read
\n"; - flush(); - } - // If we know the size, no need to look at the end parameters if ($size > 0) { if ($total_size == $size) { @@ -113,7 +122,6 @@ $imap_general_debug = false; $response = $regs[1]; $message = trim($regs[2]); - if ($imap_general_debug) { echo '--
'; } if ($handle_errors == false) { return $resultlist; } if ($response == 'NO') { @@ -149,12 +157,13 @@ $imap_general_debug = false; ** will be displayed. This function returns the imap connection handle. ******************************************************************************/ function sqimap_login ($username, $password, $imap_server_address, $imap_port, $hide) { + global $color, $squirrelmail_language, $HTTP_ACCEPT_LANGUAGE, $onetimepad; - $imap_stream = fsockopen ($imap_server_address, $imap_port, - $error_number, $error_string, 15); + $imap_stream = fsockopen ( $imap_server_address, $imap_port, + $error_number, $error_string, 15); $server_info = fgets ($imap_stream, 1024); - + // Decrypt the password $password = OneTimePadDecrypt($password, $onetimepad); @@ -255,7 +264,6 @@ $imap_general_debug = false; function sqimap_capability($imap_stream, $capability) { global $sqimap_capabilities; -global $imap_general_debug; if (!is_array($sqimap_capabilities)) { fputs ($imap_stream, sqimap_session_id() . " CAPABILITY\r\n"); @@ -279,7 +287,7 @@ global $imap_general_debug; ** Returns the delimeter between mailboxes: INBOX/Test, or INBOX.Test... ******************************************************************************/ function sqimap_get_delimiter ($imap_stream = false) { -global $imap_general_debug; + global $sqimap_delimiter; global $optional_delimiter;