X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fimap_general.php;h=1826d9124a4a69a5fb2881d82acfcb83bac65b21;hp=d4c61c3490ccf2f5fdef0fcd6dbbab9ce26fc9f9;hb=7350889b45590aee831ba1150ee94efb95b03992;hpb=554120537f88194b762784be92aeeb78cfd1a774 diff --git a/functions/imap_general.php b/functions/imap_general.php index d4c61c34..1826d912 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -1,25 +1,34 @@ $read
\n"; - flush(); - } - $size = -1; $data[] = $read; $read = fgets($imap_stream, 9096); @@ -66,13 +67,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 +107,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') { @@ -255,7 +248,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 +271,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;