From 0cfd745a014d89a59139f41e7a11320565e4933c Mon Sep 17 00:00:00 2001 From: antipode Date: Tue, 4 Dec 2001 02:16:42 +0000 Subject: [PATCH] Missed a few. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1837 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index cac50336..ab05c08e 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -297,7 +297,8 @@ function sqimap_mailbox_list ($imap_stream) } fputs ($imap_stream, sqimap_session_id() . " LIST \"\" \"$mbx\"\r\n"); - $read = sqimap_read_data ($imap_stream, sqimap_session_id(), true, $response, $message); + $read = sqimap_read_data ($imap_stream, sqimap_session_id(), + true, $response, $message); /* Another workaround for EIMS */ if (isset($read[1]) && ereg("^(\\* [A-Z]+.*)\\{[0-9]+\\}([ \n\r\t]*)$", @@ -449,7 +450,8 @@ function sqimap_mailbox_list_all ($imap_stream) $mailbox = find_mailbox_name($read_ary[$i]); $dm_count = countCharInString($mailbox, $delimiter); if (substr($mailbox, -1) == $delimiter) { - $dm_count--; /* If name ends in delimiter - decrement count by one */ + /* If name ends in delimiter - decrement count by one */ + $dm_count--; } /* Format folder name, but only if it's a INBOX.* or have */ @@ -476,12 +478,14 @@ function sqimap_mailbox_list_all ($imap_stream) $mailbox = substr($mailbox, 0, strlen($mailbox) - 1); } $boxes[$g]["unformatted"] = $mailbox; - $boxes[$g]["unformatted-disp"] = ereg_replace('^' . $folder_prefix, '', $mailbox); + $boxes[$g]["unformatted-disp"] = + ereg_replace('^' . $folder_prefix, '', $mailbox); $boxes[$g]["id"] = $g; /** Now lets get the flags for this mailbox **/ - fputs ($imap_stream, sqimap_session_id() . " LIST \"\" \"$mailbox\"\r\n"); - $read_mlbx = sqimap_read_data ($imap_stream, sqimap_session_id(), true, $response, $message); + fputs ($imap_stream, sqimap_session_id() . " LIST \"\" \"$mailbox\"\r\n"); + $read_mlbx = sqimap_read_data ($imap_stream, sqimap_session_id(), + true, $response, $message); /* Another workaround for EIMS */ if (isset($read_mlbx[1]) && -- 2.25.1