Missed a few.
authorantipode <antipode@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Dec 2001 02:16:42 +0000 (02:16 +0000)
committerantipode <antipode@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Dec 2001 02:16:42 +0000 (02:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1837 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index cac503365c1e18ddf1f7acc03a2f2349627b3345..ab05c08e56a442c3627da2b88a9f4256088e5a49 100755 (executable)
@@ -297,7 +297,8 @@ function sqimap_mailbox_list ($imap_stream)
         }
         
         fputs ($imap_stream, sqimap_session_id() . " LIST \"\" \"$mbx\"\r\n");
         }
         
         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]*)$", 
         /* 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) {
             $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 */
             }
             
             /* 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;
                 $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 **/
             $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]) &&
             
             /* Another workaround for EIMS */
             if (isset($read_mlbx[1]) &&