From 61d9e88594284a19469c122a527b31b493a5dc0a Mon Sep 17 00:00:00 2001 From: lkehresman Date: Fri, 2 Feb 2001 15:43:28 +0000 Subject: [PATCH] fixed warnings and fixed broken part of my updated sqimap_read_data() git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1038 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/config_default.php | 4 ++-- functions/imap_general.php | 6 ++++-- functions/mime.php | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/config_default.php b/config/config_default.php index 3096f356..0528defc 100644 --- a/config/config_default.php +++ b/config/config_default.php @@ -163,10 +163,10 @@ $attachment_dir = $data_dir; -// This is the default size of the folder list. Default is 200, +// This is the default size of the folder list. Default is 150, // but you can set it to whatever you wish. - $default_left_size = 200; + $default_left_size = 150; // Some IMAP servers allow a username (like "bob") to log in if they use // uppercase in their name (like "Bob" or "BOB"). This creates extra diff --git a/functions/imap_general.php b/functions/imap_general.php index 12a84601..2e216e4d 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -25,7 +25,7 @@ $size = 0; } - $data = Array(); + $data = array(); $total_size = 0; $continue = true; @@ -46,7 +46,9 @@ if ($total_size == $size) { $data[] = $read; $read = fgets($imap_stream, 9096); - $read = fgets($imap_stream, 9096); + while (!ereg("^$pre (OK|BAD|NO)(.*)$", $read, $regs)) { + $read = fgets($imap_stream, 9096); + } $continue = false; } else if ($total_size > $size) { $difference = $total_size - $size; diff --git a/functions/mime.php b/functions/mime.php index 76260f6e..eb2330ec 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -192,6 +192,7 @@ // loop through until we find a space or an end parenthesis $pos = 0; $char = substr($structure, $pos, 1); + $text = ""; while ($char != " " && $char != ")" && $pos < strlen($structure)) { $text .= $char; $pos++; -- 2.25.1