removed some buggy UW specific code -- subscribed folders now show with UW again.
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 30 Oct 2000 17:29:40 +0000 (17:29 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 30 Oct 2000 17:29:40 +0000 (17:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@826 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index de9ce02..c5a147c 100755 (executable)
       for ($g=0; $g < count($line); $g++) {
          $boxes[$g]["raw"] = $line[$g];
             
-         $mailbox = $line_lsub[$g];
+         $mailbox = trim($line_lsub[$g]);
          $dm_count = countCharInString($mailbox, $dm);
          if (substr($mailbox, -1) == $dm)
             $dm_count--;
     ******************************************************************************/
    function sqimap_mailbox_list ($imap_stream) {
       global $load_prefs_php, $prefs_php, $config_php, $data_dir, $username, $list_special_folders_first;
-      global $trash_folder, $sent_folder, $imap_server_type;
+      global $trash_folder, $sent_folder;
       global $move_to_trash, $move_to_sent;
 
       $inbox_in_list = false;
 
       /** LSUB array **/
       $inbox_subscribed = false;
-      if ($imap_server_type == "uw") {
-         fputs ($imap_stream, "a001 LSUB \"~\" \"*\"\r\n");
-      }
-      else {
-         fputs ($imap_stream, "a001 LSUB \"\" \"*\"\r\n");
-      }
+      fputs ($imap_stream, "a001 LSUB \"\" \"*\"\r\n");
       $lsub_ary = sqimap_read_data ($imap_stream, "a001", true, $response, $message);
-   
+
       for ($i=0;$i < count($lsub_ary); $i++) {
          $sorted_lsub_ary[$i] = find_mailbox_name($lsub_ary[$i]);
          if ($sorted_lsub_ary[$i] == "INBOX")