edited todo
[squirrelmail.git] / config / config_default.php
index c8a1aa4b8a7c93525b8e2c2daf08f23a194bece4..1fbdcad9af9645f973489c8cb315af888322b7b4 100644 (file)
@@ -1,4 +1,4 @@
-<?
+<?php
 //  Organization's logo picture (blank if none)
     $org_logo = "../images/sm_logo.jpg";
 
 //  This is displayed right after they log in
     $motd = "You are using SquirrelMail's web-based email client.  If you run into any bugs or have suggestions, please report them to our <A HREF=\"mailto:squirrelmail-list@sourceforge.net\">mailing list</A>";
 
+//  Whether or not to use a special color for special folders.  If not, special
+//  folders will be the same color as the other folders
+    $use_special_folder_color = true;
+
+//  The type of IMAP server you are running
+//  Valid type are the following (case is important).
+//  
+//  courier
+//  cyrus
+//  exchange
+//  uw
+    $imap_server_type = "cyrus";
+
+//  Many servers store mail in your home directory.  With this, they
+//  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:
+//     $default_folder_prefix = "mail/";
+//        -- or --
+//     $default_folder_prefix = "Mail/folders/";
+//
+//  If you do not use this, please set it to "".
+    $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
+//         - if this is set to "true", when "delete" is pressed, it
+//           will attempt to move the selected messages to the folder
+//           named $trash_folder. If it's set to "false", we won't even
+//           attempt to move the messages, just delete them.
+//    $trash_folder
+//         - This is the path to the default trash folder. For Cyrus
+//           IMAP, it would be "INBOX.Trash", but for UW it would be
+//           "Trash". We need the full path name here.
+//    $auto_expunge
+//         - If this is true, when a message is moved or copied, the
+//           source mailbox will get expunged, removing all messages
+//           marked "Deleted".
+//    $sent_folder
+//         - This is the path to where Sent messages will be stored.
+
+    $default_move_to_trash = true;
+    $trash_folder = "INBOX.Trash";
+    $auto_expunge = true;
+    $sent_folder = "INBOX.Sent";
+
+//  Special Folders are folders that can't be manipulated like normal
+//  user created folders can. A couple of examples would be
+//  "INBOX.Trash", "INBOX.Drafts". We have them set to Netscape's
+//  default mailboxes, but this obviously can be changed. To add one,
+//  just add a new number to the array.
+
+    $special_folders[0] = "INBOX";   // The first one has to be the inbox (whatever the name is)
+    $special_folders[1] = $trash_folder;
+    $special_folders[2] = $sent_folder;
+    $special_folders[3] = "INBOX.Drafts";
+    $special_folders[4] = "INBOX.Templates";
+
+//  Whether or not to list the special folders first  (true/false)
+    $list_special_folders_first = true;
+
+//  Are all your folders subfolders of INBOX (i.e.  cyrus IMAP server)
+//  If you are not sure, set it to false.
+    $default_sub_of_inbox = true;
+
+//  Some IMAP daemons (UW) handle folders weird. They only allow a
+//  folder to contain either messages or other folders, not both at
+//  the same time. This option controls whether or not to display an
+//  option during folder creation. The option toggles which type of
+//  folder it should be.
+//
+//  If this option confuses you, make it "true". You can't hurt
+//  anything if it's true, but some servers will respond weird if it's
+//  false. (Cyrus works fine whether it's true OR false).
+
+    $show_contain_subfolders_option = false;
+
+//  This option controls what character set is used when sending mail
+//  and when sending HTMl to the browser. Do not set this to US-ASCII,
+//  use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R,
+//  since this implementation is faster than the alternatives.
+    $default_charset = "iso-8859-1";
+
+//  Whether or not to use META tags and automatically forward after an
+//  action has been completed.
+    $auto_forward = true;
+
+//  Path to the data/ directory
+//    It is a possible security hole to have a writable directory
+//    under the web server's root directory (ex: /home/httpd/html).
+//    For this reason, it is possible to put the data directory
+//    anywhere you would like. The path name can be absolute or
+//    relative (to the config directory). It doesn't matter. Here are
+//    two examples:
+//
+//  Absolute:
+//    $data_dir = "/usr/local/squirrelmail/data/";
+//
+//  Relative (to the config directory):
+//    $data_dir = "../data/";
+
+    $data_dir = "../data/";
+
+//  Path to directory used for storing attachments while a mail is
+//  being sent. There are a few security considerations regarding this
+//  directory:
+//    - It should have the permission 733 (rwx-wx-wx) to make it
+//      impossible for a random person with access to the webserver to
+//      list files in this directory. Confidential data might be laying
+//      around there
+//    - Since the webserver is not able to list the files in the content
+//      is also impossible for the webserver to delete files lying around 
+//      there for too long.
+//    - It should probably be another directory than data_dir.
+
+    $attachment_dir = $data_dir;
+
+//  This is the default size of the left folder list.  Default is 200,
+//  but you can set it to whatever you wish.
+
+   $default_left_size = 200;
+
 //  Themes
 //     You can define your own theme and put it in this directory.  You must
 //     call it as the example below.  You can name the theme whatever you
     $theme[6]["PATH"] = "../config/ice_theme.php";
     $theme[6]["NAME"] = "Ice";
 
-//  Whether or not to use a special color for special folders.  If not, special
-//  folders will be the same color as the other folders
-    $use_special_folder_color = true;
+    $theme[7]["PATH"] = "../config/seaspray_theme.php";
+    $theme[7]["NAME"] = "Sea Spray";
 
-/* The following are related to deleting messages.
- *   $move_to_trash
- *         - if this is set to "true", when "delete" is pressed, it will attempt
- *           to move the selected messages to the folder named $trash_folder.  If
- *           it's set to "false", we won't even attempt to move the messages, just
- *           delete them.
- *   $trash_folder
- *         - This is the path to the default trash folder.  For Cyrus IMAP, it
- *           would be "INBOX.Trash", but for UW it would be "Trash".  We need the
- *           full path name here.
- *   $auto_expunge
- *         - If this is true, when a message is moved or copied, the source mailbox
- *           will get expunged, removing all messages marked "Deleted".
- */
 
-    $default_move_to_trash = true;
-    $trash_folder = "INBOX.Trash";
-    $auto_expunge = true;
-
-//  Special Folders are folders that can't be manipulated like normal user created
-//  folders can.  A couple of examples would be "INBOX.Trash", "INBOX.Drafts".  We have
-//  them set to Netscape's default mailboxes, but this obviously can be changed.
-//  To add one, just add a new number to the array.
-
-    $special_folders[0] = "INBOX";   // The first one has to be the inbox (whatever the name is)
-    $special_folders[1] = $trash_folder;
-    $special_folders[2] = "INBOX.Sent";
-    $special_folders[3] = "INBOX.Drafts";
-    $special_folders[4] = "INBOX.Templates";
-
-//  Whether or not to list the special folders first  (true/false)
-    $list_special_folders_first = true;
-
-//  Are all your folders subfolders of INBOX (i.e.  cyrus IMAP server)
-//  If you are not sure, set it to false.
-    $default_sub_of_inbox = true;
-
-//  Some IMAP daemons (UW) handle folders weird.  They only allow a folder to contain
-//  either messages or other folders, not both at the same time.  This option controls
-//  whether or not to display an option during folder creation.  The option toggles
-//  which type of folder it should be.
+//  LDAP server(s)
 //
-//  If this option confuses you, make it "true".  You can't hurt anything if it's true,
-//  but some servers will respond weird if it's false.  (Cyrus works fine whether it's
-//  true OR false).
-    $show_contain_subfolders_option = false;
+//    Array of arrays with LDAP server parameters. See
+//    functions/abook_ldap_server.php for a list of possible
+//    parameters
 
-//  Whether or not to use META tags and automatically forward after an action has
-//  been completed.
-    $auto_forward = true;
+    $ldap_server[0] = Array(
+                       "host" => "memberdir.netscape.com",
+                       "name" => "Netcenter Member Directory",
+                       "base" => "ou=member_directory,o=netcenter.com");
 
-//  Path to the data/ directory
-//    It is a possible security hole to have a writable directory under the web server's
-//    root directory (ex: /home/httpd/html).  For this reason, it is possible to put
-//    the data directory anywhere you would like.   The path name can be absolute or
-//    relative (to the config directory).  It doesn't matter.  Here are two examples:
-//
-//  Absolute:
-//    $data_dir = "/usr/local/squirrelmail/data/";
-//
-//  Relative (to the config directory):
-//    $data_dir = "../data/";
+    $ldap_server[1] = Array(
+                       "host" => "ldap.bigfoot.com",
+                       "name" => "Bigfoot Directory",
+                       "base" => "",
+                       "charset" => "iso8859-1");
 
-    $data_dir = "../data/";
 ?>