From 81a897dced6deb1e5fc9a332dfe572818f1da0f0 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Sat, 25 Mar 2000 12:12:43 +0000 Subject: [PATCH] major speed improvements git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@341 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 2 +- functions/imap_mailbox.php | 2 +- src/folders.php | 23 +---------------------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index a8cde1dd..9bfc1a46 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -144,7 +144,7 @@ ** Returns the delimeter between mailboxes: INBOX/Test, or INBOX.Test... ******************************************************************************/ function sqimap_get_delimiter ($imap_stream) { - fputs ($imap_stream, ". LIST \"\" *\r\n"); + fputs ($imap_stream, ". LSUB \"\" *\r\n"); $read = sqimap_read_data($imap_stream, ".", true, $a, $b); $quote_position = strpos ($read[0], "\""); $delim = substr ($read[0], $quote_position+1, 1); diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 8d2dc88c..997d6572 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -211,7 +211,7 @@ $dm = sqimap_get_delimiter ($imap_stream); - fputs ($imap_stream, "a001 LIST \"\" *\r\n"); + fputs ($imap_stream, "a001 LIST \"INBOX\" *\r\n"); $read_ary = sqimap_read_data ($imap_stream, "a001", true, $response, $message); $g = 0; $phase = "inbox"; diff --git a/src/folders.php b/src/folders.php index 069857b5..44b6073c 100644 --- a/src/folders.php +++ b/src/folders.php @@ -193,28 +193,7 @@ $boxes = sqimap_mailbox_list_all ($imap_stream); echo "
\n"; - echo "\n"; + echo ""; echo "\n"; -- 2.25.1