From 3d29eb781a899d3ae9f5ee8376eee28b97f92b87 Mon Sep 17 00:00:00 2001 From: jangliss Date: Wed, 2 Feb 2005 15:05:37 +0000 Subject: [PATCH] Quoting "INBOX" to fix an imap server bug. No harm in quoting the folder name, so it shouldn't hurt other servers (tested against courier and broken imap server hmailserver I believe). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8749 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 4 +++- functions/imap_mailbox.php | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5fd1f230..e4fe81e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -194,7 +194,9 @@ Version 1.5.1 -- CVS - Removed numeric keys for plugin array in config.php. - Fixed translations of "On DATE, AUTHOR said" and "AUTHOR said" replies. - Added sq_str_pad function for padding of multi-byte strings. - - Added sq_strlen function for calculation of multi-byte string length. + - Added sq_strlen function for calculation of multi-byte string length. + - Quoted "INBOX" in check for the status of INBOX in a LIST call. Fixes an + issue with a specific IMAP server. Version 1.5.0 -------------------- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 26055084..59ab2ed9 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -787,7 +787,7 @@ function sqimap_mailbox_tree($imap_stream) { if ($has_inbox == false) { // do a list request for inbox because we should always show // inbox even if the user isn't subscribed to it. - $inbox_ary = sqimap_run_command ($imap_stream, 'LIST "" INBOX', + $inbox_ary = sqimap_run_command ($imap_stream, 'LIST "" "INBOX"', true, $response, $message); $inbox_ary = compact_mailboxes_response($inbox_ary); if (count($inbox_ary)) { @@ -1050,4 +1050,4 @@ function sqimap_get_status_mbx_tree($imap_stream,&$mbx_tree) { } } -?> \ No newline at end of file +?> -- 2.25.1