Patched up the problem pointed out by Michael Bowe with folder
authorebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Feb 2003 19:42:03 +0000 (19:42 +0000)
committerebullient <ebullient@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Feb 2003 19:42:03 +0000 (19:42 +0000)
creation and Courier.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4545 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/folders.php

index c1a3ba2431ca82a1397a6f810371e66eb0f00d35..d90a0e3d205bc9f2ed3e04d0a4965a435c424f86 100644 (file)
@@ -101,20 +101,21 @@ echo html_tag( 'table', '', 'center', '', 'width="70%" cellpadding="4" cellspaci
      _("as a subfolder of").
      '<BR>'.
      "<TT><SELECT NAME=subfolder>\n";
-if ($default_sub_of_inbox == false) {
+
+$show_selected=0;
+$skip_folders=0;
+$server_type = strtolower($imap_server_type);
+if ( $server_type == 'courier' ) {
+  $show_selected = array('inbox');
+  $skip_folders = array('inbox','inbox.trash');
+}
+
+if ( $default_sub_of_inbox == false ) {
     echo '<OPTION SELECTED VALUE="">[ '._("None")." ]\n";
 } else {
     echo '<OPTION VALUE="">[ '._("None")." ]\n";
-}
-
-$show_selected = 0;
-if ( $default_sub_of_inbox ) {
     $show_selected = array('inbox');
 }
-$skip_folders = 0;
-if ( strtolower($imap_server_type) == 'courier' ) {
-    $skip_folders = array('inbox.trash');
-}
 
 echo sqimap_mailbox_option_list($imapConnection, $show_selected, $skip_folders, $boxes, 'noinferiors');