added folder_prefix options
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Apr 2000 01:22:42 +0000 (01:22 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 4 Apr 2000 01:22:42 +0000 (01:22 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@385 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/config_default.php
functions/imap_mailbox.php

index 1cfe25d..3768b82 100644 (file)
     $use_special_folder_color = true;
 
 //  Many servers store mail in your home directory.  With this, they
-//  store them in a subdirectory: ~/mail or ~/Mail, etc.  If your
+//  store them in a subdirectory: mail/ or Mail/, etc.  If your
 //  server does this, please set this to what the default mail folder
 //  should be.  This is still a user preference, so they can change
 //  it if it is different for each user.
 //
 //  Example:
-//     $folder_prefix = "mail/";
+//     $default_folder_prefix = "mail/";
 //        -- or --
-//     $folder_prefix = "Mail/folders/";
+//     $default_folder_prefix = "Mail/folders/";
 //
 //  If you do not use this, please set it to "".
-    $folder_prefix = "";
+    $default_folder_prefix = "";
+//  If you do not wish to give them the option to change this, set it to false.
+//  Otherwise, if it is true, they can change the folder prefix to be anything.
+    $show_prefix_option = false;
 
 //  The following are related to deleting messages.
 //    $move_to_trash
index 1820158..b9f461c 100755 (executable)
     **  The array returned looks like this:
     ******************************************************************************/
    function sqimap_mailbox_list ($imap_stream) {
-      global $special_folders, $list_special_folders_first, $folder_prefix;
+      global $load_prefs_php, $prefs_php, $config_php, $data_dir, $username;
+      if (!isset($load_prefs_php))
+         include "../src/load_prefs.php";
+      else
+         global $folder_prefix;
+      global $special_folders, $list_special_folders_first, $default_folder_prefix;
       
       if (!function_exists ("ary_sort"))
          include ("../functions/array.php");