* Finally fixed that weird To/Cc/Bcc bug (it might be with PHP or browsers
[squirrelmail.git] / config / config_default.php
CommitLineData
59177427 1<?php
390372b4 2//
3// BEFORE EDITING THIS FILE!
4//
5// Don't edit this file directly. Copy it to config.php before you
6// edit it. However, it is best to use the configuration script
7// conf.pl if at all possible. That is the easiest and cleanest way
8// to configure.
9//
10
f435778e 11 // This makes sure we don't load it dozens of times
12 // don't change this
13 if (defined('config_php'))
14 return;
15 define('config_php', true);
16
4011c3ca 17 // don't change
78692381 18 global $config_version;
985f7c88 19 $config_version = "x62";
390372b4 20
baf93783 21// Organization's logo picture (blank if none)
78692381 22 global $org_logo;
baf93783 23 $org_logo = "../images/sm_logo.jpg";
24
25// Organization's name
78692381 26 global $org_name;
baf93783 27 $org_name = "SquirrelMail";
28
29// Webmail Title
30// This is the title that goes at the top of the browser window
78692381 31 global $org_title;
baf93783 32 $org_title = "SquirrelMail $version";
33
34// The server that your imap server is on
78692381 35 global $imapServerAddress, $imapPort;
baf93783 36 $imapServerAddress = "localhost";
37 $imapPort = 143;
38
39// The domain where your email address is.
40// Example: in "luke@usa.om.org", usa.om.org is the domain.
41// this is for all the messages sent out. Reply address
42// is generated by $username@$domain
78692381 43 global $domain;
baf93783 44 $domain = "mydomain.com";
45
46// Your SMTP server and port number (usually the same as the IMAP server)
78692381 47 global $smtpServerAddress, $smtpPort;
baf93783 48 $smtpServerAddress = "localhost";
49 $smtpPort = 25;
50
51// Uncomment this if you want to deliver locally using sendmail instead
52// of connecting to a SMTP-server
78692381 53// global $useSendmail, $sendmail_path;
baf93783 54// $useSendmail = true;
55// $sendmail_path = "/usr/sbin/sendmail";
56
57// This is displayed right after they log in
78692381 58 global $motd;
a37f3771 59 $motd = "";
baf93783 60
baf93783 61// Whether or not to use a special color for special folders. If not, special
62// folders will be the same color as the other folders
78692381 63 global $use_special_folder_color;
baf93783 64 $use_special_folder_color = true;
65
51457ed2 66// The type of IMAP server you are running
67// Valid type are the following (case is important).
68//
69// courier
70// cyrus
71// exchange
72// uw
78692381 73 global $imap_server_type;
51457ed2 74 $imap_server_type = "cyrus";
75
f923b93d 76// Rather than going to the signout.php page (which only allows you
77// to sign back in), setting signout_page allows you to sign
78// the user out and then redirect to whatever page you want.
79// For instance, the following would return the user to your
80// home page: $signout_page = "/";
81// Set to the empty string to continue to use the default signout page.
82 $signout_page = "";
83
5479d709 84// Many servers store mail in your home directory. With this, they
cf85d665 85// store them in a subdirectory: mail/ or Mail/, etc. If your
5479d709 86// server does this, please set this to what the default mail folder
87// should be. This is still a user preference, so they can change
88// it if it is different for each user.
89//
90// Example:
cf85d665 91// $default_folder_prefix = "mail/";
5479d709 92// -- or --
cf85d665 93// $default_folder_prefix = "Mail/folders/";
5479d709 94//
95// If you do not use this, please set it to "".
78692381 96 global $default_folder_prefix;
cf85d665 97 $default_folder_prefix = "";
98// If you do not wish to give them the option to change this, set it to false.
99// Otherwise, if it is true, they can change the folder prefix to be anything.
78692381 100 global $show_prefix_option;
cf85d665 101 $show_prefix_option = false;
5479d709 102
ca1f4a68 103// The following are related to deleting messages.
104// $move_to_trash
105// - if this is set to "true", when "delete" is pressed, it
106// will attempt to move the selected messages to the folder
107// named $trash_folder. If it's set to "false", we won't even
108// attempt to move the messages, just delete them.
109// $trash_folder
110// - This is the path to the default trash folder. For Cyrus
111// IMAP, it would be "INBOX.Trash", but for UW it would be
112// "Trash". We need the full path name here.
113// $auto_expunge
114// - If this is true, when a message is moved or copied, the
115// source mailbox will get expunged, removing all messages
116// marked "Deleted".
e5370d43 117// $sent_folder
118// - This is the path to where Sent messages will be stored.
baf93783 119
78692381 120 global $default_move_to_trash, $default_move_to_sent, $trash_folder,
121 $auto_expunge, $sent_folder;
baf93783 122 $default_move_to_trash = true;
2f287147 123 $default_move_to_sent = true;
baf93783 124 $trash_folder = "INBOX.Trash";
125 $auto_expunge = true;
e5370d43 126 $sent_folder = "INBOX.Sent";
baf93783 127
ca1f4a68 128// Special Folders are folders that can't be manipulated like normal
129// user created folders can. A couple of examples would be
130// "INBOX.Trash", "INBOX.Drafts". We have them set to Netscape's
131// default mailboxes, but this obviously can be changed. To add one,
132// just add a new number to the array.
baf93783 133
78692381 134 global $special_folders;
baf93783 135 $special_folders[0] = "INBOX"; // The first one has to be the inbox (whatever the name is)
136 $special_folders[1] = $trash_folder;
a3886f39 137 $special_folders[2] = $sent_folder;
baf93783 138 $special_folders[3] = "INBOX.Drafts";
139 $special_folders[4] = "INBOX.Templates";
140
141// Whether or not to list the special folders first (true/false)
78692381 142 global $list_special_folders_first;
baf93783 143 $list_special_folders_first = true;
144
145// Are all your folders subfolders of INBOX (i.e. cyrus IMAP server)
146// If you are not sure, set it to false.
78692381 147 global $default_sub_of_inbox;
baf93783 148 $default_sub_of_inbox = true;
149
ca1f4a68 150// Some IMAP daemons (UW) handle folders weird. They only allow a
151// folder to contain either messages or other folders, not both at
152// the same time. This option controls whether or not to display an
153// option during folder creation. The option toggles which type of
154// folder it should be.
baf93783 155//
ca1f4a68 156// If this option confuses you, make it "true". You can't hurt
157// anything if it's true, but some servers will respond weird if it's
158// false. (Cyrus works fine whether it's true OR false).
78692381 159 global $show_contain_subfolders_option;
baf93783 160 $show_contain_subfolders_option = false;
161
17ce8467 162// This option controls what character set is used when sending mail
163// and when sending HTMl to the browser. Do not set this to US-ASCII,
164// use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R,
165// since this implementation is faster than the alternatives.
78692381 166 global $default_charset;
17ce8467 167 $default_charset = "iso-8859-1";
168
baf93783 169// Path to the data/ directory
ca1f4a68 170// It is a possible security hole to have a writable directory
171// under the web server's root directory (ex: /home/httpd/html).
172// For this reason, it is possible to put the data directory
173// anywhere you would like. The path name can be absolute or
174// relative (to the config directory). It doesn't matter. Here are
175// two examples:
baf93783 176//
177// Absolute:
178// $data_dir = "/usr/local/squirrelmail/data/";
179//
180// Relative (to the config directory):
181// $data_dir = "../data/";
78692381 182 global $data_dir;
baf93783 183 $data_dir = "../data/";
ca1f4a68 184
185// Path to directory used for storing attachments while a mail is
186// being sent. There are a few security considerations regarding this
187// directory:
188// - It should have the permission 733 (rwx-wx-wx) to make it
189// impossible for a random person with access to the webserver to
190// list files in this directory. Confidential data might be laying
191// around there
192// - Since the webserver is not able to list the files in the content
193// is also impossible for the webserver to delete files lying around
194// there for too long.
195// - It should probably be another directory than data_dir.
78692381 196 global $attachment_dir;
4df48d80 197 $attachment_dir = $data_dir;
2848c630 198
61d9e885 199// This is the default size of the folder list. Default is 150,
2848c630 200// but you can set it to whatever you wish.
78692381 201 global $default_left_size;
61d9e885 202 $default_left_size = 150;
17ce8467 203
985f7c88 204// Some IMAP servers allow a username (like "bob") to log in if they use
205// uppercase in their name (like "Bob" or "BOB"). This creates extra
206// preference files. Toggling this option to true will transparently
207// change all usernames to lowercase.
78692381 208 global $force_username_lowercase;
985f7c88 209 $force_username_lowercase = false;
210
211
17ce8467 212// Themes
213// You can define your own theme and put it in this directory. You must
214// call it as the example below. You can name the theme whatever you
215// want. For an example of a theme, see the ones included in the config
216// directory.
217//
17ce8467 218// To add a new theme to the options that users can choose from, just add
219// a new number to the array at the bottom, and follow the pattern.
78692381 220 global $theme;
17ce8467 221
222 // The first one HAS to be here, and is your system's default theme.
223 // It can be any theme you want
390372b4 224 $theme[0]["PATH"] = "../themes/default_theme.php";
17ce8467 225 $theme[0]["NAME"] = "Default";
226
390372b4 227 $theme[1]["PATH"] = "../themes/plain_blue_theme.php";
6170c5b6 228 $theme[1]["NAME"] = "Plain Blue";
17ce8467 229
390372b4 230 $theme[2]["PATH"] = "../themes/sandstorm_theme.php";
6170c5b6 231 $theme[2]["NAME"] = "Sand Storm";
17ce8467 232
390372b4 233 $theme[3]["PATH"] = "../themes/deepocean_theme.php";
6170c5b6 234 $theme[3]["NAME"] = "Deep Ocean";
17ce8467 235
390372b4 236 $theme[4]["PATH"] = "../themes/slashdot_theme.php";
6170c5b6 237 $theme[4]["NAME"] = "Slashdot";
17ce8467 238
390372b4 239 $theme[5]["PATH"] = "../themes/purple_theme.php";
6170c5b6 240 $theme[5]["NAME"] = "Purple";
17ce8467 241
390372b4 242 $theme[6]["PATH"] = "../themes/forest_theme.php";
6170c5b6 243 $theme[6]["NAME"] = "Forest";
17ce8467 244
390372b4 245 $theme[7]["PATH"] = "../themes/ice_theme.php";
6170c5b6 246 $theme[7]["NAME"] = "Ice";
17ce8467 247
390372b4 248 $theme[8]["PATH"] = "../themes/seaspray_theme.php";
6170c5b6 249 $theme[8]["NAME"] = "Sea Spray";
a871010c 250
390372b4 251 $theme[9]["PATH"] = "../themes/bluesteel_theme.php";
9d1c518c 252 $theme[9]["NAME"] = "Blue Steel";
59eff34d 253
390372b4 254 $theme[10]["PATH"] = "../themes/dark_grey_theme.php";
6170c5b6 255 $theme[10]["NAME"] = "Dark Grey";
256
390372b4 257 $theme[11]["PATH"] = "../themes/high_contrast_theme.php";
6170c5b6 258 $theme[11]["NAME"] = "High Contrast";
24fc5dd2 259
8af40496 260 $theme[12]["PATH"] = "../themes/black_bean_burrito_theme.php";
261 $theme[12]["NAME"] = "Black Bean Burrito";
0493a8d9 262
944eb785 263 $theme[13]["PATH"] = "../themes/servery_theme.php";
264 $theme[13]["NAME"] = "Servery";
265
6e0fa5e6 266 $theme[14]["PATH"] = "../themes/maize_theme.php";
267 $theme[14]["NAME"] = "Maize";
268
269 $theme[15]["PATH"] = "../themes/bluesnews_theme.php";
270 $theme[15]["NAME"] = "BluesNews";
271
59eff34d 272// LDAP server(s)
273//
274// Array of arrays with LDAP server parameters. See
275// functions/abook_ldap_server.php for a list of possible
276// parameters
74a7d5b0 277//
78692381 278global $ldap_server;
279//
74a7d5b0 280// EXAMPLE:
281//
282// $ldap_server[0] = Array(
283// "host" => "memberdir.netscape.com",
284// "name" => "Netcenter Member Directory",
285// "base" => "ou=member_directory,o=netcenter.com");
59eff34d 286
1e0628fb 287
59eff34d 288
3806fa52 289 // you have an option to chose between javascript or html version of
290 // address book searching.
291 // true = javascript
292 // false = html
78692381 293 global $default_use_javascript_addr_book;
3806fa52 294 $default_use_javascript_addr_book = false;
295
24fc5dd2 296 // these next two options set the defaults for the way that the users see
297 // their folder list.
298 // $default_unseen_notify specifies whether or not the users will see
299 // the number of unseen in each folder by default
300 // and alsy which folders to do this to.
301 // 1=none, 2=inbox, 3=all
302 // $default_unseen_type specifies the type of notification to give the
303 // users by default.
304 // 1=(4), 2=(4,25)
78692381 305 global $default_unseen_notify, $default_unseen_type;
24fc5dd2 306 $default_unseen_notify = 2;
307 $default_unseen_type = 1;
d47b2518 308
309 // If you are running on a machine that doesn't have the tm_gmtoff
310 // value in your time structure and if you are in a time zone that
311 // has a negative offset, you need to set this value to 1.
312 // This is typically people in the US that are running Solaris 7.
78692381 313 global $invert_time;
d47b2518 314 $invert_time = false;
0ae64f08 315
78692381 316 global $plugins;
ea0e9243 317 // To install plugins, just add elements to this array that have
318 // the plugin directory name relative to the /plugins/ directory.
319 // For instance, for the "sqclock" plugin, you'd put a line like
320 // the following:
321 // $plugins[0] = "sqclock";
322
baf93783 323?>